CN106254522A - A kind of based terminal system, method and terminal - Google Patents
A kind of based terminal system, method and terminal Download PDFInfo
- Publication number
- CN106254522A CN106254522A CN201610809945.7A CN201610809945A CN106254522A CN 106254522 A CN106254522 A CN 106254522A CN 201610809945 A CN201610809945 A CN 201610809945A CN 106254522 A CN106254522 A CN 106254522A
- Authority
- CN
- China
- Prior art keywords
- service
- message
- module
- bus
- request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- 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/56—Provisioning of proxy services
- H04L67/566—Grouping or aggregating service requests, e.g. for unified processing
-
- 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
- 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/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of based terminal system, method and terminal, this system includes: bus agent module receives the service request of service application, and this service request is packaged into message sends to system message bus module and process;System message bus module monitors the service request in bus agent module, and receives the message that bus agent module sends, message call parsing module by messaging bus;The message that bus agent module is received by message resolution module resolves, and obtains the service that message needs to transfer;System message bus module inquires about the service needing to transfer from service management module, and calls the request service content comprised in service execution message from background service.By embodiment of the present invention scheme, it is possible to have employed messaging bus mechanism and replace numerous service brokers, greatly reduce the complexity of terminal service framework and the loaded down with trivial details degree of exploitation.
Description
Technical field
The present invention relates to terminal service and call field, particularly relate to a kind of based terminal system, method and terminal.
Background technology
It is a lot of convenient that intelligent terminal brings to our life, the most day by day becomes essential in user's daily life
A part.Intelligent terminal almost becomes omnipotent, it is possible to replace us by various function and applications App daily
Many instruments in life.Such as, intelligent terminal instead of navigation, digital camera, iPod even pocket lamp.Although such as
This, they are also the most ceaselessly improving.Why function is the most powerful for Android Android intelligent terminal, be unable to do without in system
The support of built-in numerous services.In android system, there is the most built-in software, such as, when incoming call received by mobile phone, meeting
The phone number of display the other side;Can also be arranged to shake or quiet by mobile phone according to the environment of surrounding.If it is desired to these functions
Being added to should be what if in the software of oneself?Answer is exactly " system service ".A lot of this clothes are provided in android system
Business, is serviced by these, it is possible to indiscriminately ad. as one wishes control android system as the embedded software of android system.
But the design of service architecture is but considerably complicated in android system, numerous services both provides correspondence at ccf layer
Agency calls for developer.So, while providing access easily, also improve service undoubtedly calls complexity.
Summary of the invention
Present invention is primarily targeted at a kind of based terminal system of proposition, method and terminal, it is possible to have employed message total
Line mechanism replaces numerous service brokers, greatly reduces the complexity of terminal service framework and the loaded down with trivial details degree of exploitation.
For achieving the above object, the invention provides a kind of based terminal system, this system includes: bus agent module,
System message bus module, message resolution module and service management module.
Bus agent module, for receiving the service request of service application, and is packaged into message transmission by this service request
Process to system message bus module.
System message bus module, for monitoring the service request in bus agent module, and is received by messaging bus
The message that bus agent module sends, message call parsing module.
Message resolution module, resolves for the message receiving system message bus module, and obtaining message needs to adjust
The service taken.
System message bus module, is additionally operable to from service management module the service that inquiry needs to transfer, and takes from backstage
Business is called the request service content comprised in service execution message.
Alternatively,
System message bus module, is additionally operable to receive the registration request of background service, and sends this registration request to clothes
Business management module.
Service management module, is additionally operable to the background service to initiating registration request and registers.
Alternatively,
Service management module, is additionally operable to the most chartered background service is set up index.
Alternatively,
System message bus module, is additionally operable to the result of request service content, service is back to service application.
Alternatively, background service includes: media services, activity service and window services.
For achieving the above object, present invention also offers a kind of terminal service method, the method includes:
Receive the service request of service application, and service request is packaged into message sends to messaging bus and process.
Messaging bus monitors service request, and resolves the message received, and obtains the service that message needs to transfer.
Inquiry needs the service transferred, and calls from background service in the request service comprised in service execution message
Hold.
Alternatively, the method also includes:
Receive the registration request of background service, and the background service initiating registration request is registered.
Alternatively, the method also includes: the most chartered background service is set up index.
Alternatively, the method also includes: to the result of request service content, service is back to service application.
For achieving the above object, present invention also offers a kind of terminal, this terminal includes described based terminal system.
The embodiment of the present invention proposes a kind of based terminal system, method and terminal, in embodiment of the present invention scheme, always
Line proxy module receives the service request of service application, and this service request is packaged into message transmission to system message bus mould
Block processes;System message bus module monitors the service request in bus agent module, and is received total by messaging bus
The message that line proxy module sends, message call parsing module;The message that bus agent module is received by message resolution module is entered
Row resolves, and obtains the service that message needs to transfer;System message bus module inquires about what needs were transferred from service management module
Service, and from background service, call the request service content comprised in service execution message.By embodiment of the present invention scheme,
Messaging bus mechanism can be have employed and replace numerous service brokers, greatly reduce complexity and the exploitation of terminal service framework
Loaded down with trivial details degree.
Accompanying drawing explanation
Fig. 1 is the hardware architecture diagram realizing each one optional mobile terminal of embodiment of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is conventional terminal service cross-call structural representation;
Fig. 4 is the based terminal system structural representation of the embodiment of the present invention;
Fig. 5 is the terminal service method flow chart of the embodiment of the present invention;
Fig. 6 is the terminal service method schematic diagram of the embodiment of the present invention;
Fig. 7 is the terminal composition structured flowchart of the embodiment of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further referring to the drawings.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Describe referring now to accompanying drawing and realize the present invention one optional mobile terminal of each embodiment.In follow-up description
In, use is used for the suffix representing such as " module ", " parts " or " unit " of the element explanation only for the beneficially present invention,
Itself do not has specific meaning.Therefore, " module " can mixedly use with " parts ".
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can include such as moving
Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP
The mobile terminal of (portable media player), guider etc. and consolidating of such as numeral TV, desk computer etc.
Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, mobile except being used in particular for
Outside the element of purpose, structure according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention.
Mobile terminal 100 can include wireless communication unit 110, A/V (audio/video) input block 120, user's input
Unit 130, sensing unit 140, output unit 150, memorizer 160, interface unit 170, controller 180 and power subsystem 190
Etc..Fig. 1 shows the mobile terminal with various assembly, it should be understood that be not required for implementing all groups illustrated
Part.Can alternatively implement more or less of assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows mobile terminal 100 and wireless communication system
Or the radio communication between network.Such as, wireless communication unit can include broadcast reception module 111, mobile communication module
112, at least one in wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcasting management server
Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be to generate and send
Broadcast singal and/or the server of broadcast related information or the broadcast singal generated before receiving and/or broadcast related information
And send it to the server of terminal.Broadcast singal can include that TV broadcast singal, radio signals, data are broadcasted
Signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase
Pass information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 receives.Broadcast singal can exist in a variety of manners, and such as, it can be with the electronics of DMB (DMB)
Program guide (EPG), the form of electronic service guidebooks (ESG) etc. of digital video broadcast-handheld (DVB-H) and exist.Broadcast
Receiver module 111 can be broadcasted by using various types of broadcast systems to receive signal.Especially, broadcast reception module 111
Can be by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video wide
Broadcast-hand-held (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service
Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcast reception module 111 may be constructed such that and is adapted to provide for extensively
Broadcast the various broadcast systems of signal and above-mentioned digit broadcasting system.Via broadcast reception module 111 receive broadcast singal and/
Or broadcast related information can be stored in memorizer 160 (or other type of storage medium).
Mobile communication module 112 sends radio signals to base station (such as, access point, node B etc.), exterior terminal
And in server at least one and/or receive from it radio signal.Such radio signal can include that voice leads to
Words signal, video calling signal or the various types of data sending according to text and/or Multimedia Message and/or receiving.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (WLAN) (Wi-Fi), Wibro
(WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant
ToothTM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybeeTMEtc..
Positional information module 115 is the module of positional information for checking or obtain mobile terminal.Positional information module
Typical case be GPS (global positioning system).According to current technology, GPS module 115 calculates from three or more satellites
Range information and correct time information and for the Information application triangulation calculated, thus according to longitude, latitude
Highly accurately calculate three-dimensional current location information.Currently, the method use three being used for calculating position and temporal information is defended
Star and by using the position and the error of temporal information that other satellite correction calculates.Additionally, GPS module 115
Velocity information can be calculated by Continuous plus current location information in real time.
A/V input block 120 is used for receiving audio or video signal.A/V input block 120 can include camera 121 He
Mike 1220, the camera 121 static map to being obtained by image capture apparatus in Video Capture pattern or image capture mode
The view data of sheet or video processes.Picture frame after process may be displayed on display unit 151.At camera 121
Picture frame after reason can be stored in memorizer 160 (or other storage medium) or carry out via wireless communication unit 110
Send, two or more cameras 1210 can be provided according to the structure of mobile terminal.Mike 122 can be at telephone relation mould
Formula, logging mode, speech recognition mode etc. operational mode receives sound (voice data) via mike, and can be by
Such acoustic processing is voice data.Audio frequency (voice) data after process can be changed in the case of telephone calling model
For can be sent to the form output of mobile communication base station via mobile communication module 112.Mike 122 can implement all kinds
Noise eliminate (or suppression) algorithm with the noise eliminating (or suppression) and producing during receiving and send audio signal or
Person disturbs.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user's input
Plant operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch
Plate (such as, detection due to touched and cause resistance, pressure, the sensitive component of change of electric capacity etc.), roller, rocking bar etc.
Deng.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close shape
State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal
Orientation, the acceleration or deceleration of mobile terminal 100 of 100 move and direction etc., and generate for controlling mobile terminal 100
The order of operation or signal.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing unit 140 can sense
This sliding-type phone opens or cuts out.It addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or
Whether person's interface unit 170 couples with external device (ED).Sensing unit 140 can include that proximity transducer 1410 will combine below
This is described by touch screen.
Interface unit 170 is used as at least one external device (ED) and is connected, with mobile terminal 100, the interface that can pass through.Such as,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, for connect have the port of device of identification module, audio frequency input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can be that storage is for verifying that user uses each of mobile terminal 100
Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included
Etc..It addition, the device (hereinafter referred to as " identifying device ") with identification module can be to take the form of smart card, therefore, know
Other device can be connected with mobile terminal 100 via port or other attachment means.Interface unit 170 may be used for receive from
The input (such as, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100
One or more elements or may be used between mobile terminal and external device (ED) transmit data.
It addition, when mobile terminal 100 is connected with external base, interface unit 170 can serve as allowing electricity by it
Power provides the path of mobile terminal 100 from base or can serve as allowing from the various command signals of base input by it
It is transferred to the path of mobile terminal.May serve as identifying that mobile terminal is from various command signals or the electric power of base input
The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio frequency and/or tactile manner
Go out signal (such as, audio signal, video signal, alarm signal, vibration signal etc.).Output unit 150 can include display
Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 100.Such as, it is in electricity when mobile terminal 100
During words call mode, display unit 151 can show and call or other (such as, text messaging, multimedia file that communicate
Download etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern
Or during image capture mode, display unit 151 can show image and/or the image of reception of capture, illustrate video or figure
UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad the most superposed on one another with formed touch screen time, display unit
151 can serve as input equipment and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
A kind of.Some in these display may be constructed such that transparence is watched from outside with permission user, and this is properly termed as transparent
Display, typical transparent display can for example, TOLED (transparent organic light emitting diode) display etc..According to specific
The embodiment wanted, mobile terminal 100 can include two or more display units (or other display device), such as, move
Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detection and touches
Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal receive pattern, call mode, logging mode,
Time under the isotype such as speech recognition mode, broadcast reception mode, that wireless communication unit 110 is received or at memorizer 160
The voice data transducing audio signal of middle storage and be output as sound.And, dio Output Modules 152 can provide with mobile
The audio frequency output (such as, call signal receives sound, message sink sound etc.) that the specific function that terminal 100 performs is relevant.
Dio Output Modules 152 can include speaker, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 100.Typical event is permissible
Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video exports, alarm unit
153 can provide output with the generation of notification event in a different manner.Such as, alarm unit 153 can be with the form of vibration
Output is provided, when receiving calling, message or some other entrance communication (incomingcommunication), alarm list
Unit 153 can provide sense of touch output (that is, vibration) to notify to user.By providing such sense of touch to export, even if
When the mobile phone of user is in the pocket of user, user also is able to identify the generation of various event.Alarm unit 153 is also
The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memorizer 160 can store the process performed by controller 180 and the software program controlling operation etc., or can
Temporarily to store the data (such as, telephone directory, message, still image, video etc.) that oneself maybe will export through output.And
And, memorizer 160 can with storage about when touch be applied to touch screen time the vibration of various modes of output and audio signal
Data.
Memorizer 160 can include that the storage medium of at least one type, described storage medium include flash memory, hard disk, many
Media card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device (RAM), static random-access store
Device (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..And, mobile terminal 100 can be connected execution memorizer with by network
The network storage device cooperation of the storage function of 160.
Controller 180 generally controls the overall operation of mobile terminal.Such as, controller 180 performs and voice call, data
Control that communication, video calling etc. are relevant and process.It addition, controller 180 can include for reproducing (or playback) many matchmakers
The multi-media module 1810 of volume data, multi-media module 1810 can construct in controller 180, or it is so structured that with control
Device 180 processed separates.Controller 180 can perform pattern recognition process, with the handwriting input that will perform on the touchscreen or figure
Sheet is drawn input and is identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit
Suitable electric power needed for part and assembly.
Various embodiment described herein can be to use such as computer software, hardware or its any combination of calculating
Machine computer-readable recording medium is implemented.Implementing for hardware, embodiment described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Program gate array (FPGA), processor, controller, microcontroller, microprocessor, be designed to perform function described herein
At least one in electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180.
Software is implemented, the embodiment of such as process or function can with allow to perform the single of at least one function or operation
Software module is implemented.Software code can be come by the software application (or program) write with any suitable programming language
Implementing, software code can be stored in memorizer 160 and be performed by controller 180.
So far, oneself is through describing mobile terminal according to its function.Below, for the sake of brevity, will describe such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and is not limited to slide type mobile terminal.
As shown in Figure 1 mobile terminal 100 may be constructed such that utilize via frame or packet transmission data all if any
Line and wireless communication system and satellite-based communication system operate.
The communication system being wherein operable to according to the mobile terminal of the present invention is described referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.Such as, communication system use
Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system
System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under
The description in face relates to cdma communication system, but such teaching is equally applicable to other type of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 100, multiple base station (BS) 270, base station
Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN)
290 form interface.MSC280 is also structured to and the BSC275 formation interface that can be couple to base station 270 via back haul link.
If back haul link can construct according to any one in the interface that Ganji knows, described interface includes such as E1/T1, ATM, IP,
PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system as shown in Figure 2 can include multiple BSC2750.
Each BS270 can service one or more subregion (or region), by multidirectional antenna or the sky of sensing specific direction
Each subregion that line covers is radially away from BS270.Or, each subregion can be by for two or more of diversity reception
Antenna covers.Each BS270 may be constructed such that support multiple frequencies distribution, and the distribution of each frequency has specific frequency spectrum
(such as, 1.25MHz, 5MHz etc.).
Intersecting that subregion and frequency are distributed can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver
System (BTS) or other equivalent terms.In this case, term " base station " may be used for broadly representing single
BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be claimed
For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent in system the mobile terminal operated by broadcsting transmitter (BT) 295
100.Broadcast reception module 111 is arranged on mobile terminal 100 and sentences the broadcast that reception is sent by BT295 as shown in Figure 1
Signal.In fig. 2 it is shown that several global positioning systems (GPS) satellite 300.Satellite 300 helps to position multiple mobile terminals
At least one in 100.
In fig. 2, depict multiple satellite 300, it is understood that be, it is possible to use any number of satellite obtain useful
Location information.GPS module 115 is generally configured to coordinate with satellite 300 to obtain the location letter wanted as shown in Figure 1
Breath.Substitute GPS tracking technique or outside GPS tracking technique, it is possible to use other of position of mobile terminal can be followed the tracks of
Technology.It addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminals 100
Signal.Mobile terminal 100 generally participates in call, information receiving and transmitting communicates with other type of.Certain base station 270 receive each instead
Processed in specific BS270 to link signal.The data obtained are forwarded to the BSC275 being correlated with.BSC provides call
Resource distribution and the mobile management function of the coordination of soft switching process included between BS270.The number that BSC275 also will receive
According to being routed to MSC280, it provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 with
MSC280 forms interface, MSC Yu BSC275 forms interface, and BSC275 correspondingly controls BS270 with by forward link signals
It is sent to mobile terminal 100.
Based on above-mentioned optional mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
Android android system realizes huge framework to be layered, and true realization of service relativelys close to bottom.In order to
Hide implementing of each service, provide access interface to developer simultaneously.The design architecture of service just introduces proxy machine
System, for bottom each service front end provide an agency.When developer needs certain service provision function, it is right to need to find
The agency answered, and then passed to service really by acting on behalf of to call.This design itself is given no cause for much criticism, but due to
The quantity of Android service is the hugest, sets up an agency for each service, and its quantity is also considerable.So develop
Person's service of calling is accomplished by each agency of identification;Service and the mutual of service also to call corresponding agency, and so, that calls patrols
Collect complexity the highest, as shown in Figure 3.As seen from Figure 3, when the function of application is more complicated when, service is called
And service with service between be more complicated alternately, it is difficult to put its relation in order.Operation irregularity once there is, the row of problem
It is also relatively difficult for looking into.
For problem present in above-mentioned Android framework, embodiment of the present invention scheme introduces messaging bus mechanism, can
To effectively reduce the complexity of service interaction.First from the point of view of the angle of service end, it is not necessary to set up in front end for each service
Corresponding agency, only need to be registered to messaging bus carries out message monitoring;Secondly from the perspective of developer, when needs make
During by certain function serviced, without the agency calling each service respectively, it is only necessary to will by single messaging bus agency
Message sends to messaging bus, and corresponding service can listen to affiliated message and carry out message execution, it is not necessary to developer is concerned about specifically
Execution details.The overall ratio of embodiment of the present invention scheme framework is more visible, and complexity ratio is relatively low, and developer can be by system
The mode of one uses service, easy to use.
To achieve these goals, as shown in Figure 4, first embodiment of the invention proposes a kind of based terminal system 1, should
System includes: bus agent module 01, system message bus module 02, message resolution module 03 and service management module 04.
Bus agent module 01, for receiving the service request of service application, and is packaged into message sends out this service request
Deliver to system message bus module 02 process.
In embodiments of the present invention, in order to the realization making system bus is transparent to developer, simultaneously for the business of front end
Apply the decoupling between rearward end frame, it is provided that bus agent module 01 for developer in front end.Bus agent module
01 is connected between miscellaneous service application and system message bus module 02, each business module of developer or miscellaneous service application
By bus agent module 01, the request of service can be packaged into message transmission to process to system message bus module 02;
The result of service request will be returned to miscellaneous service application by bus agent module 01 simultaneously.
System message bus module 02, for monitoring the service request in bus agent module 01, and passes through messaging bus
Receive the message that bus agent module 01 sends, message call parsing module 03.
In embodiments of the present invention, system message bus module 02 is core and the maincenter of whole framework, is that connection is various
Service application and the bridge of background service.System message bus module 02 includes following major function:
1) receive the application for registration of background service, be registered to service management module.
2) message that receiving front-end bus agent module 01 sends.
3) message received is resolved by message call parsing module 03.
4) call service management module 04 and search corresponding service processing message.
Message resolution module 03, resolves for the message receiving system message bus module 02, and obtaining message needs
Service to be transferred.
In embodiments of the present invention, it is in the message resolution module 03 of bus layer for carrying out message parsing, from this message
In parse the service transferred of needing, and need use to transfer method etc..Before system message bus module 02 receives
After the message that end bus agent module 01 sends, can it be resolved message call parsing module 03, in order to obtain calling
It is which service, needs what method of service execution etc..In embodiments of the present invention, message resolution module 03 is specifically used
Which kind of analysis mode does not limits, and the method for any information that can parse included in above-mentioned message or algorithm are all at this
Within the protection domain of bright embodiment.
System message bus module 02, is additionally operable to from service management module 04 service that inquiry needs to transfer, and from rear
Platform service is called the request service content comprised in service execution message.
In embodiments of the present invention, the message received system message bus module 02 when message resolution module 03 solves
After analysis obtains the service that message needs are transferred, system message bus module 02 will inquire about this needs from service management module 04
The service transferred, and from background service, call the request service content comprised in this service execution message.
Alternatively,
System message bus module 02, is additionally operable to receive the registration request of background service, and is sent extremely by this registration request
Service management module 04.
Service management module 04, is additionally operable to the background service to initiating registration request and registers.
In embodiments of the present invention, service management module 04 is mainly used in being managed background service, before this, after
Platform service needs first to register in service management module 04.Background service initiates registration to system message bus module 02 please
Asking, the registration request of background service is monitored and received to system message bus module 02, and sends this registration request to servicing pipe
Reason module 04, is registered the background service initiating registration request by service management module 04.
Alternatively,
Service management module 04, is additionally operable to the most chartered background service is set up index.
In embodiments of the present invention, multiple background services of registration can be set up index by service management module 04, in order to when
When system message bus module 02 needs certain service processing message, in that context it may be convenient to corresponding service is provided.
Alternatively,
System message bus module 02, being additionally operable to that to the result of request service content, service is back to business should
With.
In embodiments of the present invention, after a certain background service is complete to certain service request handling, also can be to system
Messaging bus module 02 returns result, and request is taken by system message bus module 02 by service by bus agent module 01
The result of business content is back to the service application initiating to service request accordingly.
Alternatively, background service includes: media services, activity service and window services.
In embodiments of the present invention, described background service can include any COS in intelligent terminal, does not limits
In above-mentioned media services, activity service and window services, numerous to list herein.
The workflow of above-mentioned modules is described in detail below,
Following steps are specifically included firstly, for the registration process of background service:
S101, one or more background services of service layer initiate registration request to system message bus module 02.
S102, system message bus module 02 receive this registration request, and call service management module 04, by background service
Registration request be sent to service management module 04.
S103, service management module 04 receive the registration request that system message bus module 02 sends, and to initiating registration
The background service of request is registered.
The most chartered multiple background services are set up index by S104, service management module 04.
Secondly, the service request handling process for front-end business application comprises the following steps:
S201, the service application of front end applications layer initiate service request.
S202, bus agent module 01 receive the service request of service application, and this service request is packaged into message and is sent out
Deliver to the system message bus module 02 of bus layer.
S203, system message bus module 02 monitor the service request in bus agent module 01, and pass through messaging bus
The message that reception bus agent module 01 sends, and call the message resolution module 03 of bus layer, transmit the message to message
Parsing module 03.
The message that system message bus module 02 sends is carried out resolving acquisition message needs by S204, message resolution module 03
The service transferred.
S205, system message bus module 02 inquire about the clothes that these needs are transferred from the service management module 04 of bus layer
Business, and from background service, call this service to perform the request service content comprised in message.
So far, by the agency of is over whole basic features of the embodiment of the present invention, it should be noted that foregoing is all
The detailed description of the invention of the embodiment of the present invention, can also use other embodiment in other embodiments, any with this
The same or analogous embodiment of bright embodiment, or the combination in any of the basic feature of the embodiment of the present invention is all in present invention enforcement
Within the protection domain of example.
For achieving the above object, present invention also offers a kind of terminal service method, as shown in Figure 5, Figure 6, the method bag
Include step S301-S303:
S301, receive the service request of service application, and service request is packaged into message sends to messaging bus and carry out
Process.
In embodiments of the present invention, in order to the realization making system bus is transparent to developer, simultaneously for the business of front end
Apply with rearward end frame between decoupling, it is provided that bus agent for developer in front end.Bus agent is connected to various
Between service application and system message bus, each business module of developer or miscellaneous service application can pass through bus agent will
The request of service is packaged into message transmission and processes to system message bus;The result of service request will be passed through simultaneously
Bus agent returns to miscellaneous service application.
S302, messaging bus monitor service request, and resolve the message received, and obtain the clothes that message needs to transfer
Business.
In embodiments of the present invention, messaging bus is core and the maincenter of whole framework, be connection miscellaneous service application and
The bridge of background service.Messaging bus includes following major function:
1) application for registration of background service is received.
2) message that receiving front-end bus agent sends.
3) message received is resolved by message call resolution unit.
4) call service managing unit and search corresponding service processing message.
In embodiments of the present invention, after messaging bus receives the message that Front Side Bus agency sends, can message call
It is resolved by resolution unit, in order to which service obtain calling is, needs what method of service execution etc..In the present invention
In embodiment, which kind of analysis mode of employing concrete for message parsing unit does not limits, and any can parse above-mentioned message
Included in the method for information or algorithm all within the protection domain of the embodiment of the present invention.
The service that S303, inquiry needs are transferred, and from background service, call the request clothes comprised in service execution message
Business content.
In embodiments of the present invention, the message received messaging bus when message parsing unit carries out resolving acquisition message to be needed
After service to be transferred, messaging bus will inquire about the service that these needs are transferred from service managing unit, and from background service
In call the request service content comprised in this service execution message.
Alternatively, the method also includes:
Receive the registration request of background service, and the background service initiating registration request is registered.
In embodiments of the present invention, by service managing unit, background service is managed, before this, background service
Need first to register in service managing unit.Background service initiates registration request to messaging bus, and messaging bus is monitored also
Receive the registration request of background service, and this registration request is sent to service managing unit, by service managing unit to initiation
The background service of registration request is registered.
Alternatively, the method also includes: the most chartered background service is set up index.
In embodiments of the present invention, multiple background services of registration can be set up index by service managing unit, in order to when disappearing
During breath certain service processing message of bus requirements, in that context it may be convenient to corresponding service is provided.
Alternatively, the method also includes: to the result of request service content, service is back to service application.
In embodiments of the present invention, after a certain background service is complete to certain service request handling, also can be to message
Bus returns result, and the result of request service content is back to initiate by messaging bus by service by bus agent
The service application of corresponding service request.
For achieving the above object, present invention also offers a kind of terminal 2, as it is shown in fig. 7, this terminal includes described terminal
Service system 1.
The embodiment of the present invention proposes a kind of based terminal system, method and terminal, in embodiment of the present invention scheme, always
Line proxy module receives the service request of service application, and this service request is packaged into message transmission to system message bus mould
Block processes;System message bus module monitors the service request in bus agent module, and is received total by messaging bus
The message that line proxy module sends, message call parsing module;The message that bus agent module is received by message resolution module is entered
Row resolves, and obtains the service that message needs to transfer;System message bus module inquires about what needs were transferred from service management module
Service, and from background service, call the request service content comprised in service execution message.By embodiment of the present invention scheme,
Messaging bus mechanism can be have employed and replace numerous service brokers, greatly reduce complexity and the exploitation of terminal service framework
Loaded down with trivial details degree.
It should be noted that in this article, term " includes ", " comprising " or its any other variant are intended to non-row
Comprising of his property, so that include that the process of a series of key element, method, article or device not only include those key elements, and
And also include other key elements being not expressly set out, or also include intrinsic for this process, method, article or device
Key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that including this
The process of key element, method, article or device there is also other identical element.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive above-described embodiment side
Method can add the mode of required general hardware platform by software and realize, naturally it is also possible to by hardware, but a lot of in the case of
The former is more preferably embodiment.Based on such understanding, prior art is done by technical scheme the most in other words
The part going out contribution can embody with the form of software product, and this computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, take
Business device, air-conditioner, or the network equipment etc.) perform the method described in each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every utilize this
Equivalent structure or equivalence flow process that bright description and accompanying drawing content are made convert, or are directly or indirectly used in other relevant skills
Art field, is the most in like manner included in the scope of patent protection of the present invention.
Claims (10)
1. a based terminal system, it is characterised in that described system includes: bus agent module, system message bus module,
Message resolution module and service management module;
Described bus agent module, for receiving the service request of service application, and is packaged into message by described service request and sends out
Deliver to described system message bus module process;
Described system message bus module, for monitoring the service request in described bus agent module, and passes through messaging bus
Receive the message that described bus agent module sends, call described message resolution module;
Described message resolution module, resolves for the message receiving described system message bus module, disappears described in acquisition
Breath needs the service transferred;
Described system message bus module, is additionally operable to inquire about from described service management module the service that described needs are transferred, and
The request service content comprised in message described in described service execution is called from background service.
2. based terminal system as claimed in claim 1, it is characterised in that
Described system message bus module, is additionally operable to receive the registration request of described background service, and is sent out by described registration request
Deliver to described service management module;
Described service management module, is additionally operable to the background service to initiating described registration request and registers.
3. based terminal system as claimed in claim 2, it is characterised in that
Described service management module, is additionally operable to the most chartered background service is set up index.
4. based terminal system as claimed in claim 1, it is characterised in that
Described system message bus module, is additionally operable to the result of described request service content, described service is back to institute
State service application.
5. the based terminal system as described in claim 1-4 any one, it is characterised in that described background service includes: matchmaker
Body service, activity service and window services.
6. a terminal service method, it is characterised in that described method includes:
Receive the service request of service application, and described service request is packaged into message sends to messaging bus and process;
Messaging bus monitors described service request, and resolves the message received, and obtains the clothes that described message needs to transfer
Business;
Inquire about the service that described needs are transferred, and from background service, call the request comprised in message described in described service execution
Service content.
7. terminal service method as claimed in claim 6, it is characterised in that described method also includes:
Receive the registration request of described background service, and the background service initiating described registration request is registered.
8. terminal service method as claimed in claim 7, it is characterised in that described method also includes: after the most chartered
Index is set up in platform service.
9. terminal service method as claimed in claim 6, it is characterised in that described method also includes: by described service to institute
The result stating request service content is back to described service application.
10. a terminal, it is characterised in that described terminal includes the terminal service system as described in claim 1-5 any one
System.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610809945.7A CN106254522B (en) | 2016-09-07 | 2016-09-07 | A kind of based terminal system, method and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610809945.7A CN106254522B (en) | 2016-09-07 | 2016-09-07 | A kind of based terminal system, method and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106254522A true CN106254522A (en) | 2016-12-21 |
CN106254522B CN106254522B (en) | 2019-08-30 |
Family
ID=57600285
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610809945.7A Active CN106254522B (en) | 2016-09-07 | 2016-09-07 | A kind of based terminal system, method and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106254522B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107070981A (en) * | 2017-01-23 | 2017-08-18 | 努比亚技术有限公司 | The equipment collaboration control system and method for multiple terminals |
CN114327466A (en) * | 2022-01-30 | 2022-04-12 | 重庆长安汽车股份有限公司 | Method and system for realizing message decoupling between vehicle-mounted APP modules |
CN115022406A (en) * | 2022-05-23 | 2022-09-06 | 中国南方电网有限责任公司 | Communication method, apparatus, device, medium and program product for electric power spot system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101667116A (en) * | 2008-09-02 | 2010-03-10 | 中兴通讯股份有限公司 | Mobile phone operating system and method for controlling same in sleep mode |
CN102075554A (en) * | 2009-11-19 | 2011-05-25 | 中国移动通信集团北京有限公司 | Service processing method and system based on SOA (Service Oriented Architecture) |
US20140181842A1 (en) * | 2012-12-21 | 2014-06-26 | Mobile Iron, Inc. | Secure mobile app connection bus |
CN105519071A (en) * | 2013-05-21 | 2016-04-20 | 三星电子株式会社 | Electronic device using logical channels for communication |
-
2016
- 2016-09-07 CN CN201610809945.7A patent/CN106254522B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101667116A (en) * | 2008-09-02 | 2010-03-10 | 中兴通讯股份有限公司 | Mobile phone operating system and method for controlling same in sleep mode |
CN102075554A (en) * | 2009-11-19 | 2011-05-25 | 中国移动通信集团北京有限公司 | Service processing method and system based on SOA (Service Oriented Architecture) |
US20140181842A1 (en) * | 2012-12-21 | 2014-06-26 | Mobile Iron, Inc. | Secure mobile app connection bus |
CN105519071A (en) * | 2013-05-21 | 2016-04-20 | 三星电子株式会社 | Electronic device using logical channels for communication |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107070981A (en) * | 2017-01-23 | 2017-08-18 | 努比亚技术有限公司 | The equipment collaboration control system and method for multiple terminals |
CN107070981B (en) * | 2017-01-23 | 2020-02-04 | 努比亚技术有限公司 | Multi-terminal equipment cooperative control system and method |
CN114327466A (en) * | 2022-01-30 | 2022-04-12 | 重庆长安汽车股份有限公司 | Method and system for realizing message decoupling between vehicle-mounted APP modules |
CN114327466B (en) * | 2022-01-30 | 2024-05-17 | 重庆长安汽车股份有限公司 | Method and system for realizing message decoupling between vehicle-mounted APP modules |
CN115022406A (en) * | 2022-05-23 | 2022-09-06 | 中国南方电网有限责任公司 | Communication method, apparatus, device, medium and program product for electric power spot system |
CN115022406B (en) * | 2022-05-23 | 2024-06-14 | 中国南方电网有限责任公司 | Communication method, apparatus, device, medium and program product for electric power spot system |
Also Published As
Publication number | Publication date |
---|---|
CN106254522B (en) | 2019-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104883658B (en) | The processing method of virtual card information and system | |
CN104883430B (en) | A kind of mobile terminal and do not read the treating method and apparatus of footmark | |
CN104967717B (en) | Noise-reduction method under terminal speech interactive mode and device | |
CN105187521A (en) | Service processing device and method | |
CN106529225A (en) | Device and method for protecting source code of application program | |
CN106155694A (en) | A kind of application and the display packing and device applied of attending to anything else | |
CN106155695A (en) | The removing control device and method of background application | |
CN104731512A (en) | Method, device and terminal for sharing pictures | |
CN106304086A (en) | Pseudo-base station recognition methods and device | |
CN106101455A (en) | Page jump management method, device and terminal | |
CN105682150A (en) | Multilink intelligent shunting method and mobile terminal | |
CN105764085A (en) | Abnormal electricity consumption detection method and terminal | |
CN105430258A (en) | Method and device for taking self-timer group photos | |
CN106993084A (en) | The method, device and mobile terminal that a kind of control information is shown | |
CN106254617A (en) | A kind of mobile terminal and control method | |
CN104618382B (en) | A kind of method and device realizing the seamless access of information | |
CN106383707A (en) | Picture display method and system | |
CN106254439A (en) | A kind of method for pushing, device and a kind of mobile device management system | |
CN106254522B (en) | A kind of based terminal system, method and terminal | |
CN107426282A (en) | A kind of picture loading method, terminal and server | |
CN107071161A (en) | The aggregation display method and mobile terminal of icon in a kind of status bar | |
CN106550133A (en) | Calling identification device and method | |
CN105827531A (en) | Routing access method and terminal | |
CN106125898A (en) | The method and device of screen rotation | |
CN105740668A (en) | Terminal screen locking device and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |