WO2020258753A1 - 一种基于融合终端的智能插件运行方法及系统 - Google Patents

一种基于融合终端的智能插件运行方法及系统 Download PDF

Info

Publication number
WO2020258753A1
WO2020258753A1 PCT/CN2019/125004 CN2019125004W WO2020258753A1 WO 2020258753 A1 WO2020258753 A1 WO 2020258753A1 CN 2019125004 W CN2019125004 W CN 2019125004W WO 2020258753 A1 WO2020258753 A1 WO 2020258753A1
Authority
WO
WIPO (PCT)
Prior art keywords
function
top box
gateway
executed
information
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.)
Ceased
Application number
PCT/CN2019/125004
Other languages
English (en)
French (fr)
Inventor
姜超
郭小会
李明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Publication of WO2020258753A1 publication Critical patent/WO2020258753A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Definitions

  • the invention relates to the field of communication technology, in particular to a method and system for operating an intelligent plug-in based on a fusion terminal.
  • the current converged terminal equipment has two CPUs inside to run the gateway system and the set-top box system respectively; the hardware of the gateway system and the set-top box system is through the network
  • the interfaces are physically connected, and the smart plug-in of the fusion terminal runs in the java virtual machine.
  • the gateway function can be configured through the intermediate interface or interface framework provided by the gateway. Compared with ordinary gateway devices, smart gateway devices need to increase storage space , Memory, CPU processing capacity to support the operation of the java virtual machine, thereby supporting intelligent functions;
  • the smart gateway uses a gateway CPU with a stronger processing capability (usually a single core below 1GHz), increases the java virtual machine capacity, increases the memory space (usually 256MB and above) to run smart plug-ins, and increases storage space ( Usually 256MB and above) store multiple smart plug-ins, traditional processing methods will inevitably lead to increased equipment costs;
  • the set-top box systems of converged gateways are mostly Android systems, with large storage space (low-end models on the market are generally 4GB, 8GB), strong CPU capabilities (generally have 4 cores, each core above 1.5GHz), and rich memory (Generally low-end models are 1GB, 2GB), the hardware capacity can meet the plug-in operation and storage.
  • the purpose of the present invention is to provide a method and system for operating a smart plug-in based on a converged terminal, using a gateway system or a set-top box system to call corresponding functions to be executed in response to operating instructions, and to combine the two systems in advance
  • the function function of the fusion terminal is distinguished, and the division of labor is performed in advance, so that the division of labor in the two systems in the fusion terminal is clear, the respective operating pressure is relieved, and the respective calculation efficiency is improved.
  • the present invention provides a smart plug-in operation method based on a converged terminal.
  • the method is applied to a converged terminal with a gateway system and a set-top box system.
  • the method includes the following steps:
  • the set-top box system executes the function to be executed to obtain a first execution instruction result, and sends the first execution instruction result to the smart plug-in;
  • the set-top box system encapsulates the function to be executed into forwarding information, and sends the forwarding information to the gateway system;
  • the gateway system parses the forwarding message and executes the function to be executed to obtain a second execution instruction result, and sends the second execution instruction result to the smart plug-in through the set-top box system.
  • the set-top box function library and the gateway function library are both stored in the set-top box system.
  • a function mapping table corresponding to the gateway function library is preset in the set-top box system, and the function mapping table is used to query the corresponding gateway in the gateway system according to the function to be executed Function interface, the gateway function interface is used to call gateway functions.
  • the set-top box system encapsulating the function to be executed into forwarding information specifically includes the following steps:
  • the set-top box system encapsulates the function name, execution parameter, parameter type, and return parameter information of the function to be executed into forwarding information.
  • the return parameter information includes return value label information, and the return value label information is used to mark whether the function to be executed requires a return value;
  • the return parameter information also includes the return value type.
  • the present invention also provides an intelligent plug-in operating system based on the fusion terminal, the system including:
  • a function identification unit which is used to respond to the operating instruction of the smart plug-in of the set-top box system, and to determine the function type of the function to be executed required to respond to the operating instruction;
  • the set-top box function execution unit is used to execute the function to be executed in the set-top box system to obtain the first execution instruction result when the function to be executed is included in the set-top box function library, and send the first execution instruction result to The smart plug-in;
  • An information forwarding unit configured to, when the function to be executed is included in the gateway function library, encapsulate the function to be executed into forwarding information in the set-top box system, and send the forwarding information to the gateway system;
  • a gateway function execution unit configured to parse the forwarded message, execute the function to be executed to obtain a second execution instruction result, and send the second execution instruction result to the information forwarding unit;
  • the information forwarding unit is further configured to send the result of the second execution instruction to the smart plug-in.
  • the set-top box function library and the gateway function library are both stored in the set-top box system.
  • the function identification unit is further configured to preset a function mapping table corresponding to the gateway function library, and the function mapping table is used to query the gateway system according to the function to be executed Corresponding gateway function interface within, the gateway function interface is used to call the gateway function.
  • the information forwarding unit encapsulates the function name, execution parameter, parameter type, and return parameter information of the function to be executed in the set-top box system into forwarding information.
  • the return parameter information includes return value label information, and the return value label information is used to record whether the function to be executed requires a return value;
  • the return parameter information also includes the return value type.
  • the present invention uses the gateway system or the set-top box system to call the corresponding function to be executed in response to the running instruction, distinguishes the function functions of the two systems in advance, and divides the labor in advance, so that the two systems in the fusion terminal have a clear division of labor and their respective operating pressures Relieve and improve their respective computing efficiency.
  • the present invention uses the set-top box system to determine the type of function to be executed, and delivers specific response actions to the set-top box system or the gateway system according to the function type, thereby reducing the hardware requirements of the device for the operation of the gateway side, and conveniently implementing the gateway function and the set-top box Function, save the overall hardware cost of the fusion terminal.
  • Figure 1 is a flow chart of the steps of a method for operating a smart plug-in based on a converged terminal in Embodiment 1 of the present invention
  • FIG. 2 is a structural block diagram of a smart plug-in operating system based on a converged terminal in Embodiment 2 of the present invention
  • FIG. 3 is a structural block diagram of a smart plug-in operating system based on a converged terminal in Embodiment 3 of the present invention
  • Embodiment 4 is a flowchart of steps of a method for operating a smart plug-in based on a converged terminal in Embodiment 4 of the present invention
  • the embodiment of the present invention provides a method and system for operating a smart plug-in based on a fusion terminal, which uses a gateway system or a set-top box system to call a corresponding function to be executed in response to running instructions, distinguishes the function functions of the two systems in advance, and divides labor in advance, The division of labor between the two systems in the fusion terminal is clear, the respective operating pressure is relieved, and the respective computing efficiency is improved.
  • a smart plug-in operation method based on a converged terminal which is applied to a converged terminal having a gateway system and a set-top box system, the method includes the following steps:
  • the set-top box system executes the function to be executed to obtain the first execution instruction result, and sends the first execution instruction result to the smart plug-in;
  • the set-top box system encapsulates the function to be executed into forwarding information, and sends the forwarding information to the gateway system;
  • the gateway system parses the forwarding message, and executes the function to be executed to obtain the second execution instruction result, and sends the second execution instruction result to the smart plug-in through the set-top box system.
  • Embodiment 1 of the present invention provides a method for operating a smart plug-in based on a converged terminal.
  • the method is applied to a converged terminal having a gateway system and a set-top box system.
  • the method includes the following steps:
  • the set-top box system executes the function to be executed to obtain the first execution instruction result, and sends the first execution instruction result to the smart plug-in;
  • the set-top box system encapsulates the function to be executed into forwarding information, and sends the forwarding information to the gateway system;
  • the gateway system parses the forwarding message, and executes the function to be executed to obtain the second execution instruction result, and sends the second execution instruction result to the smart plug-in through the set-top box system;
  • the set-top box system receives the operation instruction sent to the smart plug-in;
  • the set-top box system responds to the operation instruction for the smart plug-in, and needs to determine the function type of the function to be executed in response to the operation instruction.
  • the function type here specifically refers to whether the required function to be executed is included in the set-top box function library or a gateway function Library
  • the set-top box system executes the function to be executed to obtain the first execution instruction result, and sends the first execution instruction result to the smart plug-in;
  • the set-top box system encapsulates the function to be executed into forwarding information, sends the forwarding information to the gateway system, and then uses the gateway system to parse the forwarded message, and execute the function to be executed to obtain the second execution instruction result , And send the result of the second execution instruction to the smart plug-in through the set-top box system;
  • the set-top box system encapsulates the function to be executed into forwarding information. In actual operation, it may specifically encapsulate the function name, execution parameters, parameter type, and return parameter information of the function to be executed into forwarding information.
  • the set-top box system is used to determine the type of function to be executed, and the specific response actions are respectively delivered to the set-top box system or the gateway system according to the function type, thereby reducing the hardware requirements of the device for the operation of the gateway side and facilitating the realization of the gateway function And set-top box function, saving the overall hardware cost of the fusion terminal.
  • the gateway system or the set-top box system is used to call the corresponding function to be executed in response to the running instruction, and the function functions of the two systems are distinguished in advance, and the division of labor is performed in advance, so that the division of labor between the two systems in the fusion terminal is clear.
  • the operating pressure is relieved, and the respective operation efficiency is improved.
  • both the set-top box function library and the gateway function library are stored in the set-top box system
  • both the set-top box function library and the gateway function library are stored in the set-top box system. There is no need to adjust the hardware configuration of the gateway system to save hardware costs;
  • the STB function library and the gateway function library are stored in the STB system, the STB function library and the gateway function library are only used for function collection.
  • the function that actually executes the STB function still exists in the STB system and actually executes the gateway function. The function still exists in the gateway system.
  • a function mapping table corresponding to the gateway function library is preset in the set-top box system.
  • the function mapping table is used to query the corresponding gateway function interface in the gateway system according to the function to be executed.
  • Function interface is used to call gateway functions;
  • the set-top box system searches for the to-be-executed functions that need to be called in the gateway system through the preset function mapping table, and queries the corresponding gateway function interface in the gateway system, and the gateway function interface is used to call the gateway function.
  • the gateway function library includes multiple gateway function functions
  • the STB function library includes a variety of STB function functions
  • the gateway function function specifically refers to the function used by the gateway when it realizes its own function
  • the function function of the set-top box specifically refers to the function used by the set-top box to realize its own functions.
  • the return parameter information includes return value label information, and the return value label information is used to mark whether the function to be executed requires a return value;
  • the return parameter information also includes the return value type
  • the first execution instruction result and the second execution instruction result may include a return value and a return value type.
  • a function classification list is preset, and the function classification list includes all the function functions in the gateway function library and the set-top box function library, and adds a type label to each function function;
  • the type label is used to mark the function type of the function function
  • a function interface library can also be established.
  • the function interface library is used to include the gateway function library and the function interfaces of all the function functions in the set-top box function library;
  • function interface of the function function and the function function correspond one-to-one in the function interface library.
  • this application provides an embodiment of a smart plug-in operating system based on a converged terminal corresponding to Embodiment 1. For details, see Embodiment 2.
  • an embodiment of the present invention provides a smart plug-in operating system based on a converged terminal, which is applied to a converged terminal having a gateway system and a set-top box system, and the system includes:
  • the smart plug-in 1, located in the set-top box system, is used to receive the smart plug-in operation instruction issued by the management platform;
  • the function identification unit 2 which is used to respond to the operating instruction of the smart plug-in 1 of the set-top box system, and to determine the function type of the function to be executed required in response to the operating instruction;
  • the set-top box function execution unit 3 is used to execute the function to be executed in the set-top box system to obtain the first execution instruction result when the function to be executed is included in the set-top box function library, and send the first execution instruction result to the smart plug-in 1;
  • the information forwarding unit 4 is used for when the function to be executed is included in the gateway function library, the function to be executed is encapsulated into forwarding information in the set-top box system, and the forwarding information is sent to the gateway system;
  • the gateway function execution unit 5 is used to parse the forwarding message, execute the function to be executed to obtain the second execution instruction result, and send the second execution instruction result to the information forwarding unit;
  • the information forwarding unit 4 is also used to send the second execution instruction result to the smart plug-in 1.
  • the information forwarding unit 4 when the information forwarding unit 4 sends forwarding information to the gateway system, it specifically sends the forwarding information to the gateway function execution unit 5 of the gateway system.
  • the set-top box system receives the operation instruction sent to the smart plug-in 1;
  • the set-top box system responds to the operation instruction for the smart plug-in 1, and needs to determine the function type of the function to be executed in response to the operation instruction.
  • the function type here refers to whether the required function to be executed is included in the set-top box function library or the gateway Function library
  • the set-top box system executes the function to be executed to obtain the first execution instruction result, and sends the first execution instruction result to the smart plug-in 1;
  • the information forwarding unit 4 encapsulates the function to be executed into forwarding information in the set-top box system, sends the forwarded information to the gateway system, and then uses the gateway system to parse the forwarded message and execute the function to be executed to obtain The second execution instruction result, and the second execution instruction result is sent to the smart plug-in 1 through the set-top box system;
  • the information forwarding unit 4 encapsulates the function to be executed into forwarding information in the set-top box system. Specifically, the information forwarding unit encapsulates the function name, execution parameter, and parameter type of the function to be executed in the set-top box system. And the return parameter information is encapsulated into forwarding information.
  • the set-top box system is used to determine the type of function to be executed, and the specific response actions are respectively delivered to the set-top box system or the gateway system according to the function type, thereby reducing the hardware requirements of the operation work on the device, and conveniently implementing the gateway function and the set-top box Function, save hardware cost.
  • the gateway system or the set-top box system is used to call the corresponding function to be executed in response to the running instruction, and the function functions of the two systems are distinguished in advance, and the division of labor is performed in advance, so that the division of labor between the two systems in the fusion terminal is clear.
  • the operating pressure is relieved, and the respective operation efficiency is improved.
  • the set-top box system includes: a smart plug-in 1, a function identification unit 2, a set-top box function execution unit 3, and an information forwarding unit 4;
  • the gateway system includes a gateway function execution unit 5.
  • both the set-top box function library and the gateway function library are stored in the set-top box system
  • both the set-top box function library and the gateway function library are stored in the set-top box system. There is no need to adjust the hardware configuration of the gateway system to save hardware costs;
  • the STB function library and the gateway function library are stored in the STB system, the STB function library and the gateway function library are only used for function collection.
  • the function that actually executes the STB function still exists in the STB system and actually executes the gateway function. The function still exists in the gateway system.
  • a function mapping table corresponding to the gateway function library is preset.
  • the function mapping table is used to query the corresponding gateway function interface in the gateway system according to the function to be executed.
  • the gateway function interface is used for Call gateway function;
  • the set-top box system searches for the to-be-executed functions that need to be called in the gateway system through the preset function mapping table, and queries the corresponding gateway function interface in the gateway system, and the gateway function interface is used to call the gateway function.
  • the gateway function library includes multiple gateway function functions
  • the STB function library includes a variety of STB function functions
  • the gateway function function specifically refers to the function used by the gateway when it realizes its own function
  • set-top box function function specifically refers to the function used by the set-top box when it realizes its own functions
  • the return parameter information includes return value label information, and the return value label information is used to mark whether the function to be executed requires a return value;
  • the return parameter information also includes the return value type
  • the first execution instruction result and the second execution instruction result may include a return value and a return value type.
  • the function identification unit is also used to preset a function classification list.
  • the function classification list includes all the function functions in the gateway function library and the set-top box function library, and adds type labels to each function function. ;
  • the function identification unit is also used to query the function classification list when responding to the operation instruction of the smart plug-in 1 of the set-top box system, and determine the function type of the function to be executed required in response to the operation instruction;
  • the type label is used to mark the function type of the function function
  • a function interface library can also be established.
  • the function interface library is used to include the gateway function library and the function interfaces of all the function functions in the set-top box function library;
  • function interface of the function function and the function function correspond one-to-one in the function interface library.
  • this application provides another embodiment of a smart plug-in operating system based on a converged terminal corresponding to the first embodiment. See the third embodiment for details.
  • Embodiment 3 of the present invention provides a smart plug-in operating system based on a converged terminal, which is applied to a converged terminal having a gateway system and a set-top box system;
  • the set-top box system includes a smart plug-in 1, a function recognition unit 2, a set-top box function execution unit 3, and an information forwarding unit 4, and the gateway system includes a gateway function execution unit 5;
  • the smart plug-in 1, located in the set-top box system, is used to receive the smart plug-in operation instruction issued by the management platform;
  • the function identification unit 2 is used to respond to the operation instruction of the smart plug-in of the set-top box system, and to determine the function type of the function to be executed required in response to the operation instruction;
  • the set-top box function execution unit 3 which is used to execute the function to be executed in the set-top box system to obtain the first execution instruction result when the function to be executed is included in the set-top box function library, and send the first execution instruction result to the smart plug-in;
  • the information forwarding unit 4 is used for when the function to be executed is included in the gateway function library, the function to be executed is encapsulated into forwarding information in the set-top box system, and the forwarding information is sent to the gateway system;
  • the gateway function execution unit 5 is used to parse the forwarding message, execute the function to be executed to obtain the second execution instruction result, and send the second execution instruction result to the information forwarding unit;
  • the information forwarding unit 4 is also used to send the second execution instruction result to the smart plug-in.
  • the function recognition unit 2 has a classification list of class names and function names for functions.
  • the main function is to classify the function functions to facilitate Different system capabilities are processed. If the corresponding function belongs to the gateway system, it needs to be passed to the gateway system. If the corresponding function belongs to the set-top box system, it is executed locally;
  • the system also has a gateway function library and a set-top box function library, and each function function can be stored separately according to the function difference, which can be a jar or so file library formed by compilation;
  • the information forwarding unit 4 of the system also has a function mapping module, which is used to obtain the name of the function to be called, the parameters of the function, whether there is a return value, and the type of the return value when the function to be executed belongs to the gateway function library. ,
  • the function mapping module is specifically located in the set-top box system.
  • the function mapping module stores a function mapping table.
  • the function mapping table corresponds to the gateway function library.
  • the function mapping table stores a series of gateway function mapping relationships and is responsible for the functions called for the smart plug-in.
  • the name is mapped to the function name of the actual function of the gateway, such as com.abc.smartgateway.lanserv ices.LanHostSpeedLimitService.setLANHostSpeedLimit(int speed), which is mapped to setLANHostSpeedLimit(int speed).
  • the set-top box function execution unit 3 includes a set-top box function library and a local execution module.
  • the local execution module is used to execute the function to be executed in the set-top box system to obtain the first execution instruction result;
  • the information forwarding unit 4 includes a message encapsulation module A, a communication module A, a message decapsulation module A, a result execution module, a function mapping module, and a gateway function library;
  • the gateway function execution unit 5 includes a gateway function execution module, a communication module B, a message encapsulation module B, and a message decapsulation module B.
  • the message encapsulation module A and message encapsulation module A of the information forwarding unit 4 of this system are located in the set-top box system. According to the rules agreed with the gateway system, the required message is transferred to the gateway system.
  • the message to be transferred may include plug-ins The ID, the name of the function to be called, the parameters of the function, whether there is a return value, and the type of the return value, encapsulate the above information into multiple string messages;
  • multiple strings can be JSON strings, such as ⁇ "Funcname”:"setL ANHostSpeedLimit”, “Parameter”: “100”, “HaveReturn”: “true”, “Return_Parameter”: ⁇ "Type”: “int “,”Result”: “0” ⁇ ;
  • the message encapsulation module B is also used to encapsulate the received message according to the message encapsulation rules and conventions;
  • the message decapsulation module A and the message decapsulation module B are used to decapsulate the received message according to the message decapsulation rules and conventions.
  • the result execution module of the information forwarding unit 4 of this system is responsible for obtaining the message obtained by the message decapsulation module A after the decapsulation process, and forwards it to the smart plug-in 1.
  • the communication module A is located in the set-top box system, and the communication module B is located in the gateway system.
  • the function is for the two to carry out message communication.
  • the communication form is not limited, and the socket can be used for communication;
  • communication module A When communication module A needs to send a forwarding message to communication module B, it will first encapsulate and process through message encapsulation module A to obtain the forwarded message, and then send it to communication module B;
  • the communication module B After the communication module B receives the forwarded message, it decapsulates it through the message decapsulation module B, and then passes it to the gateway function execution module for processing. After the gateway function execution module is processed, the second execution instruction result is obtained, and the message encapsulation module B Perform encapsulation processing, and then feedback the encapsulated second execution instruction result to the communication module A through the communication module B;
  • the communication module A receives the encapsulated second execution instruction result, performs decapsulation processing through the message decapsulation module A, obtains the second execution instruction result, and then sends the second execution instruction result to the smart plug-in 1 through the result execution module
  • the message encapsulation module A and the message encapsulation module B are used to encapsulate the received message according to the message encapsulation rules and conventions;
  • the message decapsulation module A and the message decapsulation module B are used to decapsulate the received message in accordance with message decapsulation rules and conventions.
  • the set-top box system also includes a Java virtual machine, and the smart plug-in 1, the function recognition unit 2, the gateway function library, and the set-top box function library all run in the Java virtual machine.
  • the set-top box system is used to determine the type of function to be executed, and the specific response actions are respectively delivered to the set-top box system or the gateway system according to the function type, thereby reducing the hardware requirements of the operation work on the device, and conveniently implementing the gateway function and the set-top box Function, save hardware cost.
  • this application provides another embodiment of a method for operating a smart plug-in based on a converged terminal corresponding to the third embodiment.
  • this application provides another embodiment of a method for operating a smart plug-in based on a converged terminal corresponding to the third embodiment.
  • the fourth embodiment refers to the fourth embodiment.
  • Embodiment 4 of the present invention provides a smart plug-in operating method based on a converged terminal.
  • the method is based on a smart plug-in operating system of a converged terminal and is applied to a converged terminal having a gateway system and a set-top box system.
  • the method includes the following step:
  • A1. Encapsulate each function as a library in the Android system to obtain a set-top box function library and a gateway function library;
  • step A2 Run the Java virtual machine when the system starts, and synchronously load the set-top box function library and gateway function library implemented in step A1;
  • A5. Identify whether the function to be executed belongs to the gateway capability or the set-top box capability
  • step A6 If the capability is identified as a gateway capability in step A5, call the function mapping module, find the function actually executed by the gateway, and execute step A8;
  • step A5 If the capability is identified as the set-top box capability in step A5, execute the function locally in the set-top box system, obtain the first execution instruction result and send it to the smart plug-in, and terminate the step;
  • the message encapsulation module A encapsulates the function name, parameters and types, whether return values are required, and return value types into forwarding messages;
  • the communication module B in the gateway system receives the forwarding message sent by the communication module A of the set-top box system
  • the decapsulation module B parse the forwarded message, and obtain the decapsulated message.
  • the decapsulated message includes the function name, parameters and types in the forwarded message, whether the return value is required, and the return value type;
  • step A13 If the function function in step A12 has a return value, generate a second execution instruction result according to the return value and return value type, encapsulate the result through the message encapsulation module B, and notify the communication module B;
  • the communication module B sends the packaged second execution instruction result to the communication module A;
  • the communication module A transmits the encapsulated second execution instruction result to the message decapsulation module A, performs message analysis, and obtains the second execution instruction result;
  • the set-top box system is used to determine the type of function to be executed, and the specific response actions are respectively delivered to the set-top box system or the gateway system according to the function type, thereby reducing the hardware requirements of the operation work on the device, and conveniently implementing the gateway function and the set-top box Function, save hardware cost.
  • this application provides an embodiment of a storage medium corresponding to Embodiment 1. For details, see Embodiment 5.
  • the fifth embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, all or part of the method steps in the first embodiment are implemented.
  • the present invention implements all or part of the process in the above-mentioned first embodiment, and can also be completed by instructing relevant hardware by a computer program.
  • the computer program can be stored in a computer-readable storage medium.
  • the computer program is executed by a processor, , The steps of the above-mentioned method embodiments can be realized.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
  • Computer-readable media may include: any entity or device capable of carrying computer program code, recording media, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access Memory (RAM, Random Access Memory), electric carrier signal, telecommunications signal, software distribution medium, etc. It should be noted that the content contained in computer-readable media can be appropriately added or deleted according to the requirements of the legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to the legislation and patent practice, computer-readable media does not include Electric carrier signal and telecommunications signal.
  • Embodiment 6 Based on the same inventive concept, this application provides an embodiment of the device corresponding to Embodiment 1. For details, see Embodiment 6.
  • the sixth embodiment of the present invention also provides a device, including a memory and a processor, and a computer program running on the processor is stored in the memory.
  • a computer program running on the processor is stored in the memory.
  • the processor executes the computer program, all method steps or part of the method in the first embodiment are implemented. step.
  • the so-called processor can be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), ready-made Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor, or the processor may also be any conventional processor, etc.
  • the processor is the control center of the computer device, and various interfaces and lines are used to connect various parts of the entire computer device.
  • the memory may be used to store computer programs and/or modules, and the processor implements various functions of the computer device by running or executing the computer programs and/or modules stored in the memory and calling data stored in the memory.
  • the memory may mainly include a storage program area and a storage data area, where the storage program area can store the operating system, at least one application program (such as sound playback function, image playback function, etc.) required by the function; the storage data area can be stored according to the mobile phone Use the created data (such as audio data, video data, etc.).
  • the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disks, memory, plug-in hard disks, smart media cards (SMC), and secure digital (SD) cards. , Flash Card, at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
  • the embodiments of the present invention can be provided as methods, systems, servers, or computer program products. Therefore, the present invention may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, optical storage, etc.) containing computer-usable program codes.
  • a computer-usable storage media including but not limited to disk storage, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了一种基于融合终端的智能插件运行方法及系统,涉及通信技术领域,该方法包括以下步骤:响应智能插件的运行指令,判断响应运行指令所需的待执行函数的函数类型;若待执行函数收录于机顶盒函数库内,机顶盒系统执行待执行函数以获得第一执行指令结果,并发送至智能插件;若待执行函数收录于网关函数库内,机顶盒系统将待执行函数封装成转发信息,并发送至网关系统;网关系统解析转发消息,并执行待执行函数以获得第二执行指令结果,并发送至智能插件。本发明提前将两个系统的功能函数进行区分,使得融合终端内的两个系统分工明确,各自运行压力得到缓解,提高各自运算效率。

Description

一种基于融合终端的智能插件运行方法及系统 技术领域
本发明涉及通信技术领域,具体涉及一种基于融合终端的智能插件运行方法及系统。
背景技术
为了满足用户网关类路由、数据转发等业务和网络机顶盒视频类业务的需求,现阶段的融合终端设备内部具备两个CPU,分别运行网关系统和机顶盒系统;网关系统和机顶盒系统的硬件是通过网络接口物理连接在一起的,融合终端的智能插件运行在java虚拟机中,可以通过网关提供的中间接口或接口框架实现对网关功能的配置,相对于普通网关设备,智能网关设备则需要增加存储空间、内存、CPU处理能力以支持java虚拟机的运行,从而支持智能功能;
传统的处理方式,智能网关采用更换更强处理能力的网关CPU(一般是单核1GHz以下),增加java运行虚拟机能力,增加内存空间(一般是256MB及以上)运行智能插件,增加存储空间(一般是256MB及以上)存储多个智能插件,传统的处理方式必然导致设备成本增加;
而融合网关的机顶盒系统多为Android系统,且存储空间大(市面的低端型号一般都在4GB、8GB),CPU能力强(一般都有4核,每个核在1.5GHz以上),内存富裕(一般低端型号都在1GB、2GB),硬件能力可以满足插件运行并存储。
因此,急需一种解决上述技术问题的数据下发处理方案,用于 实现智能网关插件在机顶盒Android系统中的运行,并且可以调用网关系统的函数,通知网关系统执行相关功能,从而使融合终端在不增加硬件成本的基础上支持智能网关功能。
发明内容
针对现有技术中存在的缺陷,本发明的目的在于提供一种基于融合终端的智能插件运行方法及系统,利用网关系统或机顶盒系统调用对应的待执行函数来响应运行指令,提前将两个系统的功能函数进行区分,预先进行分工,使得融合终端内的两个系统分工明确,各自运行压力得到缓解,提高各自运算效率。
为达到以上目的,本发明采取的技术方案是:
本发明提供一种基于融合终端的智能插件运行方法,所述方法应用于具有网关系统和机顶盒系统的融合终端,所述方法包括以下步骤:
响应机顶盒系统的智能插件的运行指令,判断响应所述运行指令所需的待执行函数的函数类型;
若所述待执行函数收录于机顶盒函数库内,所述机顶盒系统执行所述待执行函数以获得第一执行指令结果,并将第一执行指令结果发送至所述智能插件;
若所述待执行函数收录于网关函数库内,所述机顶盒系统将所述待执行函数封装成转发信息,将所述转发信息发送至所述网关系统;
所述网关系统解析所述转发消息,并执行所述待执行函数以获得第二执行指令结果,并将所述第二执行指令结果通过所述机顶盒系统发送至所述智能插件。
在上述技术方案的基础上,所述机顶盒函数库以及所述网关函数库均存储于所述机顶盒系统中。
在上述技术方案的基础上,在机顶盒系统内预设一与所述网关函数库对应的函数映射表,所述函数映射表用于根据所述待执行函数,查询所述网关系统内对应的网关函数接口,所述网关函数接口用于调用网关函数。
在上述技术方案的基础上,所述机顶盒系统将所述待执行函数封装成转发信息具体包括以下步骤:
所述机顶盒系统将待执行函数的函数名、执行参数、参数类型以及返回参数信息封装成转发信息。
在上述技术方案的基础上,所述返回参数信息包括返回值标签信息,所述返回值标签信息用于标记所述待执行函数是否需要返回值;
当所述待执行函数需要返回值时,所述返回参数信息还包括返回值类型。
本发明还提供一种基于融合终端的智能插件运行系统,所述系统包括:
函数识别单元,其用于响应机顶盒系统的智能插件的运行指令,判断响应所述运行指令所需的待执行函数的函数类型;
机顶盒函数执行单元,其用于当所述待执行函数收录于机顶盒函数库内,在所述机顶盒系统内执行所述待执行函数以获得第一执行指令结果,并将第一执行指令结果发送至所述智能插件;
信息转发单元,其用于当所述待执行函数收录于网关函数库内,在所述机顶盒系统内将所述待执行函数封装成转发信息,将所述转发信息发送至所述网关系统;
网关函数执行单元,其用于解析所述转发消息,并执行所述待执行函数以获得第二执行指令结果,并将所述第二执行指令结果发送至信息转发单元;
所述信息转发单元,其还用于将所述第二执行指令结果发送至所述智能插件。
在上述技术方案的基础上,所述机顶盒函数库以及所述网关函数库均存储于所述机顶盒系统中。
在上述技术方案的基础上,所述函数识别单元还用于预设一与所述网关函数库对应的函数映射表,所述函数映射表用于根据所述待执行函数,查询所述网关系统内对应的网关函数接口,所述网关函数接口用于调用网关函数。
在上述技术方案的基础上,所述信息转发单元在所述机顶盒系统内将待执行函数的函数名、执行参数、参数类型以及返回参数信息封装成转发信息。
在上述技术方案的基础上,所述返回参数信息包括返回值标签信息,所述返回值标签信息用于记录所述待执行函数是否需要返回值;
当所述待执行函数需要返回值时,所述返回参数信息还包括返回值类型。
与现有技术相比,本发明的优点在于:
1、本发明利用网关系统或机顶盒系统调用对应的待执行函数来响应运行指令,提前将两个系统的功能函数进行区分,预先进行分工,使得融合终端内的两个系统分工明确,各自运行压力得到缓解,提高各自运算效率。
2、本发明利用机顶盒系统判断待执行函数的类型,根据函数类 型将具体的响应动作分别交给机顶盒系统或网关系统,从而降低网关侧运行工作对设备的硬件要求,便利的实现网关功能以及机顶盒功能,节省融合终端总体的硬件成本。
附图说明
图1为本发明实施例一中基于融合终端的智能插件运行方法的步骤流程图;
图2为本发明实施例二中基于融合终端的智能插件运行系统的结构框图;
图3为本发明实施例三中基于融合终端的智能插件运行系统的结构框图;
图4为本发明实施例四中基于融合终端的智能插件运行方法的步骤流程图;
图中:1、智能插件;2、函数识别单元;3、机顶盒函数执行单元;4、信息转发单元;5、网关函数执行单元。
具体实施方式
以下结合附图对本发明的实施例作进一步详细说明。
本发明实施例提供一种基于融合终端的智能插件运行方法及系统,利用网关系统或机顶盒系统调用对应的待执行函数来响应运行指令,提前将两个系统的功能函数进行区分,预先进行分工,使得融合终端内的两个系统分工明确,各自运行压力得到缓解,提高各自运算效率。
为达到上述技术效果,本申请的总体思路如下:
一种基于融合终端的智能插件运行方法,方法应用于具有网关系统和机顶盒系统的融合终端,该方法包括以下步骤:
S1、响应机顶盒系统的智能插件的运行指令,判断响应运行指令所需的待执行函数的函数类型;
S20、若待执行函数收录于机顶盒函数库内,机顶盒系统执行待执行函数以获得第一执行指令结果,并将第一执行指令结果发送至智能插件;
S21、若待执行函数收录于网关函数库内,机顶盒系统将待执行函数封装成转发信息,将转发信息发送至网关系统;
S3、网关系统解析转发消息,并执行待执行函数以获得第二执行指令结果,并将第二执行指令结果通过机顶盒系统发送至智能插件。
以下结合附图对本发明的实施例作进一步详细说明。
实施例1
参见图1所示,本发明实施例1提供一种基于融合终端的智能插件运行方法,该方法应用于具有网关系统和机顶盒系统的融合终端,该方法包括以下步骤:
S1、响应机顶盒系统的智能插件的运行指令,判断响应运行指令所需的待执行函数的函数类型;
S20、若待执行函数收录于机顶盒函数库内,机顶盒系统执行待执行函数以获得第一执行指令结果,并将第一执行指令结果发送至智能插件;
S21、若待执行函数收录于网关函数库内,机顶盒系统将待执行函数封装成转发信息,将转发信息发送至网关系统;
S3、网关系统解析转发消息,并执行待执行函数以获得第二执行指令结果,并将第二执行指令结果通过机顶盒系统发送至智能插件;
本发明实施例中,首先机顶盒系统接收到向智能插件发送的运行指令;
机顶盒系统响应针对智能插件的运行指令,需要判断响应该运行指令所需的待执行函数的函数类型,此处的函数类型,具体是指所需的待执行函数是收录于机顶盒函数库还是网关函数库;
若待执行函数收录于机顶盒函数库内,机顶盒系统执行待执行函数以获得第一执行指令结果,并将第一执行指令结果发送至智能插件;
若待执行函数收录于网关函数库内,机顶盒系统将待执行函数封装成转发信息,将转发信息发送至网关系统,进而利用网关系统解析转发消息,并执行待执行函数以获得第二执行指令结果,并将第二执行指令结果通过机顶盒系统发送至智能插件;
其中,所述机顶盒系统将所述待执行函数封装成转发信息,在实际操作时,具体可以是将待执行函数的函数名、执行参数、参数类型以及返回参数信息封装成转发信息。
本发明实施例中,利用机顶盒系统判断待执行函数的类型,根据函数类型将具体的响应动作分别交给机顶盒系统或网关系统,从而降低网关侧运行工作对设备的硬件要求,便利的实现网关功能以及机顶盒功能,节省融合终端总体的硬件成本。
本发明实施例中,利用网关系统或机顶盒系统调用对应的待执行函数来响应运行指令,提前将两个系统的功能函数进行区分,预先进行分工,使得融合终端内的两个系统分工明确,各自运行压力得到缓解,提高各自运算效率。
本发明实施例中的另一种实施方式,机顶盒函数库以及网关函数库均存储于机顶盒系统中;
由于网关系统的数据存储空间相对于机顶盒系统的数据存储空间要小,故而将机顶盒函数库以及网关函数库均存储于机顶盒系统中,无需再对网关系统的硬件配置进行调整,节省硬件成本;
需要说明的是,虽然机顶盒函数库以及网关函数库均存储于机顶盒系统中,但机顶盒函数库以及网关函数库仅仅用于函数收录,实际执行机顶盒功能的函数依旧存在于机顶盒系统,实际执行网关功能的函数也依旧存在于网关系统中。
本发明实施例中的另一种实施方式,在机顶盒系统内预设一与网关函数库对应的函数映射表,函数映射表用于根据待执行函数,查询网关系统内对应的网关函数接口,网关函数接口用于调用网关函数;
机顶盒系统通过预设的函数映射表寻找应用于网关系统中的需要调用的待执行函数,查询网关系统内对应的网关函数接口,网关函数接口用于调用网关函数。
本发明实施例中的另一种实施方式,响应机顶盒系统的智能插件的运行指令,判断响应运行指令所需的待执行函数的函数类型之前,还包括以下步骤:
启动机顶盒系统内的Java虚拟机,并同步加载网关函数库以及机顶盒函数库。
本发明实施例中的另一种实施方式,网关函数库包括多种网关功能函数;
机顶盒函数库包括多种机顶盒功能函数;
其中,网关功能函数具体是指网关在实现自身功能时,所用到的函数;
同理,机顶盒功能函数具体是指机顶盒在实现自身功能时,所 用到的函数。
本发明实施例中的另一种实施方式,返回参数信息包括返回值标签信息,返回值标签信息用于标记待执行函数是否需要返回值;
当待执行函数需要返回值时,返回参数信息还包括返回值类型;
当待执行函数仅仅执行对应的指令,而不是数据计算或数据分析时,则无需提供返回值。
必要时,第一执行指令结果以及第二执行指令结果可包括返回值以及返回值类型。
本发明实施例中的另一种实施方式,预设一函数分类列表,函数分类列表收录网关函数库以及机顶盒函数库中的所有功能函数,并对各功能函数添加类型标签;
响应机顶盒系统的智能插件的运行指令时,查询函数分类列表,判断响应运行指令所需的待执行函数的函数类型;
其中,类型标签用于标记功能函数的函数类型;
预先对网关函数库以及机顶盒函数库中的所有功能函数进行收录,并向各功能函数增加类型标签,从而在需要判断响应运行指令所需的待执行函数的函数类型时,能够快速得到判断结果。
必要时,对于网关函数库以及机顶盒函数库中的所有功能函数,还可建立一函数接口库,函数接口库用于收录网关函数库以及机顶盒函数库中的所有功能函数的函数接口;
以便在后续调用时,能够快速的调用对应的功能函数;
需要说明的是,功能函数与功能函数的函数接口在函数接口库中一一对应。
基于同一发明构思,本申请提供了实施例一对应的基于融合终端的智能插件运行系统的实施例,详见实施例二
实施例二
参见图2所示,本发明实施例提供一种基于融合终端的智能插件运行系统,该系统应用于具有网关系统和机顶盒系统的融合终端,该系统包括:
智能插件1,位于机顶盒系统,其用于接收管理平台发出的智能插件操作指令;
函数识别单元2,其用于响应机顶盒系统的智能插件1的运行指令,判断响应运行指令所需的待执行函数的函数类型;
机顶盒函数执行单元3,其用于当待执行函数收录于机顶盒函数库内,在机顶盒系统内执行待执行函数以获得第一执行指令结果,并将第一执行指令结果发送至智能插件1;
信息转发单元4,其用于当待执行函数收录于网关函数库内,在机顶盒系统内将待执行函数封装成转发信息,将转发信息发送至网关系统;
网关函数执行单元5,其用于解析转发消息,并执行待执行函数以获得第二执行指令结果,并将第二执行指令结果发送至信息转发单元;
信息转发单元4,其还用于将第二执行指令结果发送至智能插件1。
需要说明的是,信息转发单元4将转发信息发送至网关系统时,具体是将转发信息发送至网关系统的网关函数执行单元5。
本发明实施例中,首先机顶盒系统接收到向智能插件1发送的运行指令;
机顶盒系统响应针对智能插件1的运行指令,需要判断响应该运行指令所需的待执行函数的函数类型,此处的函数类型,具体是 指所需的待执行函数是收录于机顶盒函数库还是网关函数库;
若待执行函数收录于机顶盒函数库内,机顶盒系统执行待执行函数以获得第一执行指令结果,并将第一执行指令结果发送至智能插件1;
若待执行函数收录于网关函数库内,信息转发单元4在机顶盒系统将待执行函数封装成转发信息,将转发信息发送至网关系统,进而利用网关系统解析转发消息,并执行待执行函数以获得第二执行指令结果,并将第二执行指令结果通过机顶盒系统发送至智能插件1;
其中,在实际操作时,信息转发单元4在机顶盒系统将待执行函数封装成转发信息,具体可以是所述信息转发单元在所述机顶盒系统内将待执行函数的函数名、执行参数、参数类型以及返回参数信息封装成转发信息。
本发明实施例中,利用机顶盒系统判断待执行函数的类型,根据函数类型将具体的响应动作分别交给机顶盒系统或网关系统,从而降低运行工作对设备的硬件要求,便利的实现网关功能以及机顶盒功能,节省硬件成本。
本发明实施例中,利用网关系统或机顶盒系统调用对应的待执行函数来响应运行指令,提前将两个系统的功能函数进行区分,预先进行分工,使得融合终端内的两个系统分工明确,各自运行压力得到缓解,提高各自运算效率。
需要说明的是,机顶盒系统包括:智能插件1、函数识别单元2、机顶盒函数执行单元3以及信息转发单元4;
网关系统包括网关函数执行单元5。
本发明实施例中的另一种实施方式,机顶盒函数库以及网关函 数库均存储于机顶盒系统中;
由于网关系统的数据存储空间相对于机顶盒系统的数据存储空间要小,故而将机顶盒函数库以及网关函数库均存储于机顶盒系统中,无需再对网关系统的硬件配置进行调整,节省硬件成本;
需要说明的是,虽然机顶盒函数库以及网关函数库均存储于机顶盒系统中,但机顶盒函数库以及网关函数库仅仅用于函数收录,实际执行机顶盒功能的函数依旧存在于机顶盒系统,实际执行网关功能的函数也依旧存在于网关系统中。
本发明实施例中的另一种实施方式,预设一与网关函数库对应的函数映射表,函数映射表用于根据待执行函数,查询网关系统内对应的网关函数接口,网关函数接口用于调用网关函数;
机顶盒系统通过预设的函数映射表寻找应用于网关系统中的需要调用的待执行函数,查询网关系统内对应的网关函数接口,网关函数接口用于调用网关函数。
本发明实施例中的另一种实施方式,响应机顶盒系统的智能插件1的运行指令,判断响应运行指令所需的待执行函数的函数类型之前,还包括以下步骤:
启动机顶盒系统内的Java虚拟机,并同步加载网关函数库以及机顶盒函数库。
本发明实施例中的另一种实施方式,网关函数库包括多种网关功能函数;
机顶盒函数库包括多种机顶盒功能函数;
其中,网关功能函数具体是指网关在实现自身功能时,所用到的函数;
同理,机顶盒功能函数具体是指机顶盒在实现自身功能时,所 用到的函数;
本发明实施例中的另一种实施方式,返回参数信息包括返回值标签信息,返回值标签信息用于标记待执行函数是否需要返回值;
当待执行函数需要返回值时,返回参数信息还包括返回值类型;
当待执行函数仅仅执行对应的指令,而不是数据计算或数据分析时,则无需提供返回值。
必要时,第一执行指令结果以及第二执行指令结果可包括返回值以及返回值类型。
本发明实施例中的另一种实施方式,函数识别单元还用于预设一函数分类列表,函数分类列表收录网关函数库以及机顶盒函数库中的所有功能函数,并对各功能函数添加类型标签;
函数识别单元还用于响应机顶盒系统的智能插件1的运行指令时,查询函数分类列表,判断响应运行指令所需的待执行函数的函数类型;
其中,类型标签用于标记功能函数的函数类型;
预先对网关函数库以及机顶盒函数库中的所有功能函数进行收录,并向各功能函数增加类型标签,从而在需要判断响应运行指令所需的待执行函数的函数类型时,能够快速得到判断结果。
必要时,对于网关函数库以及机顶盒函数库中的所有功能函数,还可建立一函数接口库,函数接口库用于收录网关函数库以及机顶盒函数库中的所有功能函数的函数接口;
以便在后续调用时,能够快速的调用对应的功能函数;
需要说明的是,功能函数与功能函数的函数接口在函数接口库中一一对应。
基于同一发明构思,本申请提供了另一种与实施例一对应的基 于融合终端的智能插件运行系统的实施例,详见实施例三
实施例三
参见图3所示,本发明实施例3提供一种基于融合终端的智能插件运行系统,该系统应用于具有网关系统和机顶盒系统的融合终端;
机顶盒系统包括智能插件1、函数识别单元2、机顶盒函数执行单元3以及信息转发单元4,网关系统包括网关函数执行单元5;
智能插件1,位于机顶盒系统,其用于接收管理平台发出的智能插件操作指令;
函数识别单元2,其用于响应机顶盒系统的智能插件的运行指令,判断响应运行指令所需的待执行函数的函数类型;
机顶盒函数执行单元3,其用于当待执行函数收录于机顶盒函数库内,在机顶盒系统内执行待执行函数以获得第一执行指令结果,并将第一执行指令结果发送至智能插件;
信息转发单元4,其用于当待执行函数收录于网关函数库内,在机顶盒系统内将待执行函数封装成转发信息,将转发信息发送至网关系统;
网关函数执行单元5,其用于解析转发消息,并执行待执行函数以获得第二执行指令结果,并将第二执行指令结果发送至信息转发单元;
信息转发单元4,其还用于将第二执行指令结果发送至智能插件。
必要时,在智能插件1运行后调用对应的功能函数前,首先经过函数识别单元2,函数识别单元2中存在类名及函数名对功能的分类列表,主要作用是对功能函数做分类,以便对不同系统能力做差异化处理,如果对应的功能函数属于网关系统则需要传递到网关系统,如果对应的功能函数属于机顶盒系统则本地执行;
本系统中还存在网关函数库以及机顶盒函数库,可根据功能差异将各功能函数分开存储,具体可以是通过编译形成的jar或so文件库;
进一步的,本系统的信息转发单元4还存在一函数映射模块,其用于当待执行函数属于网关函数库时,获取需要调用的函数名、函数的参数、是否有返回值以及返回值的类型,
函数映射模块具体位于机顶盒系统内,函数映射模块存储有函数映射表,该函数映射表与网关函数库对应,该函数映射表保存一系列的网关功能函数的映射关系,负责为智能插件调用的函数名,映射成为网关实际功能的函数名,比如com.abc.smartgateway.lanserv ices.LanHostSpeedLimitService.setLANHostSpeedLimit(int speed),映射为setLANHostSpeedLimit(int speed)。
其中,机顶盒函数执行单元3包括机顶盒函数库以及本地执行模块,本地执行模块用于在机顶盒系统内执行待执行函数,以获得第一执行指令结果;
信息转发单元4包括消息封装模块A、通信模块A、消息解封装模块A、结果执行模块、函数映射模块以及网关函数库;
网关函数执行单元5包括网关函数执行模块、通信模块B、消息封装模块B以及消息解封装模块B。
需要说明的是,本系统的信息转发单元4的消息封装模块A,消息封装模块A位于机顶盒系统内,按照与网关系统约定的规则,将需要消息传递给网关系统,需要传递的消息可以包括插件的ID、需要调用的函数名、函数的参数、是否有返回值以及返回值的类型,将上述信息封装成多个字符串消息;
其中,多个字符串可以为JSON字符串,例如{"Funcname":"setL  ANHostSpeedLimit","Parameter":"100","HaveReturn":"true","Return_Parameter":{"Type":"int","Result":"0"};
而消息封装模块B,其同样用于按照消息封装规则及约定,对接收到的消息进行封装处理;
而消息解封装模块A以及消息解封装模块B,其用于按照消息解封装规则及约定,对接收到的消息进行解封装处理。
需要说明的是,本系统的信息转发单元4的结果执行模块,负责获取消息解封装模块A在解封装处理后获得的消息,并转发至智能插件1。
需要说明的是,通信模块A位于机顶盒系统内,通信模块B位于网关系统内,作用是两者进行消息通信,通信形式不限,具体可以使用socket进行通信;
当通信模块A需要向通信模块B发送转发消息时,会先通过消息封装模块A封装处理,获得转发消息,进而再发送至通信模块B;
而通信模块B接收到转发消息后,通过消息解封装模块B解封装处理,进而在交予网关函数执行模块处理,待网关函数执行模块处理后,获得第二执行指令结果,通过消息封装模块B进行封装处理,再通过通信模块B将封装后的第二执行指令结果反馈至通信模块A;
通信模块A接收封装后的第二执行指令结果,通过消息解封装模块A进行解封装处理,获得第二执行指令结果,进而通过结果执行模块将第二执行指令结果发送至智能插件1
其中,消息封装模块A以及消息封装模块B,其用于按照消息封装规则及约定,对接收到的消息进行封装处理;
而消息解封装模块A以及消息解封装模块B,其用于按照消息 解封装规则及约定,对接收到的消息进行解封装处理。
具体的,机顶盒系统还包括Java虚拟机,智能插件1、函数识别单元2、网关函数库、机顶盒函数库均运行于Java虚拟机内。
本发明实施例中,利用机顶盒系统判断待执行函数的类型,根据函数类型将具体的响应动作分别交给机顶盒系统或网关系统,从而降低运行工作对设备的硬件要求,便利的实现网关功能以及机顶盒功能,节省硬件成本。
基于同一发明构思,本申请提供了另一种与实施例三对应的基于融合终端的智能插件运行方法的实施例,详见实施例四
实施例四
参见图4所示,本发明实施例4提供一种基于融合终端的智能插件运行方法,该方法基于融合终端的智能插件运行系统,应用于具有网关系统和机顶盒系统的融合终端,该方法包括以下步骤:
A1、在Android系统将各功能函数封装为库,获得机顶盒函数库以及网关函数库;
A2、系统启动时运行Java虚拟机,并同步加载步骤A1中实现的机顶盒函数库以及网关函数库;
A3、在Java虚拟机中运行智能插件,获得待执行函数;
A4、将待执行函数传递到函数识别单元;
A5、识别出待执行函数属于网关能力还是机顶盒能力;
A6、若步骤A5中能力识别为网关能力,则调用函数映射模块,找到网关实际执行的函数,执行步骤A8;
A7、若步骤A5中能力识别为机顶盒能力,则在机顶盒系统本地执行函数,获得第一执行指令结果并发送至智能插件,并终止步骤;
A8、消息封装模块A将函数名、参数及类型、是否需要返回值以及返回值类型封装成转发消息;
A9、调用通信模块A将转发消息发送至网关系统;
A10、网关系统内的通信模块B接收到机顶盒系统的通信模块A发送的转发消息;
A11、调用解封装模块B,解析转发消息,获得解封装消息,解封装消息包括转发消息中的函数名、参数及类型、是否需要返回值以及返回值类型;
A12、根据解封装消息执行相应的功能函数;
A13、若步骤A12中的功能函数存在返回值,则根据返回值及返回值类型生成第二执行指令结果,通过消息封装模块B封装处理,并告知通信模块B;
A14、通信模块B将封装后的第二执行指令结果发送至通信模块A;
A15、通信模块A将封装后的第二执行指令结果传递给消息解封装模块A,进行消息解析,获得第二执行指令结果;
A16、将第二执行指令结果发送智能插件。
本发明实施例中,利用机顶盒系统判断待执行函数的类型,根据函数类型将具体的响应动作分别交给机顶盒系统或网关系统,从而降低运行工作对设备的硬件要求,便利的实现网关功能以及机顶盒功能,节省硬件成本。
基于同一发明构思,本申请提供了实施例一对应的存储介质的实施例,详见实施例五
实施例五
本发明第五实施例提供了一种计算机可读存储介质,其上存储 有计算机程序,计算机程序被处理器执行时实现第一实施例中的所有方法步骤或部分方法步骤。
本发明实现上述第一实施例中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,计算机程序包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。计算机可读介质可以包括:能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。
基于同一发明构思,本申请提供了实施例一对应的设备的实施例,详见实施例六
实施例六
本发明第六实施例还提供一种设备,包括存储器和处理器,存储器上储存有在处理器上运行的计算机程序,处理器执行计算机程序时实现第一实施例中的所有方法步骤或部分方法步骤。
所称处理器可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他 可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,处理器是计算机装置的控制中心,利用各种接口和线路连接整个计算机装置的各个部分。
存储器可用于存储计算机程序和/或模块,处理器通过运行或执行存储在存储器内的计算机程序和/或模块,以及调用存储在存储器内的数据,实现计算机装置的各种功能。存储器可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、视频数据等)等。此外,存储器可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、服务器或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、服务器和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机 程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (10)

  1. 一种基于融合终端的智能插件运行方法,所述方法应用于具有网关系统和机顶盒系统的融合终端,其特征在于,所述方法包括以下步骤:
    响应机顶盒系统的智能插件的运行指令,判断响应所述运行指令所需的待执行函数的函数类型;
    若所述待执行函数收录于机顶盒函数库内,所述机顶盒系统执行所述待执行函数以获得第一执行指令结果,并将第一执行指令结果发送至所述智能插件;
    若所述待执行函数收录于网关函数库内,所述机顶盒系统将所述待执行函数封装成转发信息,将所述转发信息发送至所述网关系统;
    所述网关系统解析所述转发消息,并执行所述待执行函数以获得第二执行指令结果,并将所述第二执行指令结果通过所述机顶盒系统发送至所述智能插件。
  2. 如权利要求1所述的方法,其特征在于:
    所述机顶盒函数库以及所述网关函数库均存储于所述机顶盒系统中。
  3. 如权利要求1所述的方法,其特征在于:
    在机顶盒系统内预设一与所述网关函数库对应的函数映射表,所述函数映射表用于根据所述待执行函数,查询所述网关系统内对应的网关函数接口,所述网关函数接口用于调用网关函数。
  4. 如权利要求1所述的方法,其特征在于,所述机顶盒系统将所述待执行函数封装成转发信息具体包括以下步骤:
    所述机顶盒系统将待执行函数的函数名、执行参数、参数类型 以及返回参数信息封装成转发信息。
  5. 如权利要求4所述的方法,其特征在于:
    所述返回参数信息包括返回值标签信息,所述返回值标签信息用于标记所述待执行函数是否需要返回值;
    当所述待执行函数需要返回值时,所述返回参数信息还包括返回值类型。
  6. 一种基于融合终端的智能插件运行系统,其特征在于,所述系统包括:
    函数识别单元,其用于响应机顶盒系统的智能插件的运行指令,判断响应所述运行指令所需的待执行函数的函数类型;
    机顶盒函数执行单元,其用于当所述待执行函数收录于机顶盒函数库内,在所述机顶盒系统内执行所述待执行函数以获得第一执行指令结果,并将第一执行指令结果发送至所述智能插件;
    信息转发单元,其用于当所述待执行函数收录于网关函数库内,在所述机顶盒系统内将所述待执行函数封装成转发信息,将所述转发信息发送至所述网关系统;
    网关函数执行单元,其用于解析所述转发消息,并执行所述待执行函数以获得第二执行指令结果,并将所述第二执行指令结果发送至信息转发单元;
    所述信息转发单元,其还用于将所述第二执行指令结果发送至所述智能插件。
  7. 如权利要求6所述的系统,其特征在于:
    所述机顶盒函数库以及所述网关函数库均存储于所述机顶盒系统中。
  8. 如权利要求6所述的系统,其特征在于:
    所述函数识别单元还用于预设一与所述网关函数库对应的函数映射表,所述函数映射表用于根据所述待执行函数,查询所述网关系统内对应的网关函数接口,所述网关函数接口用于调用网关函数。
  9. 如权利要求6所述的系统,其特征在于:
    所述信息转发单元在所述机顶盒系统内将待执行函数的函数名、执行参数、参数类型以及返回参数信息封装成转发信息。
  10. 如权利要求6所述的系统,其特征在于:
    所述返回参数信息包括返回值标签信息,所述返回值标签信息用于记录所述待执行函数是否需要返回值;
    当所述待执行函数需要返回值时,所述返回参数信息还包括返回值类型。
PCT/CN2019/125004 2019-06-28 2019-12-13 一种基于融合终端的智能插件运行方法及系统 Ceased WO2020258753A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910571238.2A CN110347442B (zh) 2019-06-28 2019-06-28 一种基于融合终端的智能插件运行方法及系统
CN201910571238.2 2019-06-28

Publications (1)

Publication Number Publication Date
WO2020258753A1 true WO2020258753A1 (zh) 2020-12-30

Family

ID=68177409

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/125004 Ceased WO2020258753A1 (zh) 2019-06-28 2019-12-13 一种基于融合终端的智能插件运行方法及系统

Country Status (2)

Country Link
CN (1) CN110347442B (zh)
WO (1) WO2020258753A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347442B (zh) * 2019-06-28 2020-09-22 烽火通信科技股份有限公司 一种基于融合终端的智能插件运行方法及系统
CN112559083B (zh) * 2020-12-24 2023-08-04 成都新希望金融信息有限公司 函数插件执行方法、装置、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2556646B1 (fr) * 2010-04-09 2016-12-21 Orange Technique de contrôle d'accès a un flux de données diffusé
CN107154877A (zh) * 2017-05-27 2017-09-12 深圳市茁壮网络股份有限公司 融合终端的配置管理方法及融合终端
CN108023780A (zh) * 2017-12-21 2018-05-11 广州杰赛科技股份有限公司 融合终端的网关设置方法和系统、融合终端
CN108833979A (zh) * 2018-05-04 2018-11-16 烽火通信科技股份有限公司 双系统融合终端的预配置文件导入方法及双系统融合终端
CN110347442A (zh) * 2019-06-28 2019-10-18 烽火通信科技股份有限公司 一种基于融合终端的智能插件运行方法及系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2464452A (en) * 2008-10-08 2010-04-21 Global Mix Ltd Multicast Media Streaming
US8279805B2 (en) * 2009-08-24 2012-10-02 At&T Intellectual Property I, L.P. Residential gateway
CN104333806B (zh) * 2014-09-26 2018-07-31 青岛海信宽带多媒体技术有限公司 一种机顶盒的参数操作方法和装置
CN107864162B (zh) * 2017-12-22 2019-12-17 烽火通信科技股份有限公司 融合网关双系统及其通信安全保护方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2556646B1 (fr) * 2010-04-09 2016-12-21 Orange Technique de contrôle d'accès a un flux de données diffusé
CN107154877A (zh) * 2017-05-27 2017-09-12 深圳市茁壮网络股份有限公司 融合终端的配置管理方法及融合终端
CN108023780A (zh) * 2017-12-21 2018-05-11 广州杰赛科技股份有限公司 融合终端的网关设置方法和系统、融合终端
CN108833979A (zh) * 2018-05-04 2018-11-16 烽火通信科技股份有限公司 双系统融合终端的预配置文件导入方法及双系统融合终端
CN110347442A (zh) * 2019-06-28 2019-10-18 烽火通信科技股份有限公司 一种基于融合终端的智能插件运行方法及系统

Also Published As

Publication number Publication date
CN110347442A (zh) 2019-10-18
CN110347442B (zh) 2020-09-22

Similar Documents

Publication Publication Date Title
EP3499815B1 (en) Packet transmission
CN115134315A (zh) 报文转发方法及相关装置
WO2021008413A1 (zh) 一种物联网设备的故障提示方法及相关装置
US20250321784A1 (en) Task execution method and system, electronic device, and computer storage medium
CN108170582A (zh) 系统状态查询方法及装置、计算机可读存储介质
WO2020258753A1 (zh) 一种基于融合终端的智能插件运行方法及系统
WO2020199422A1 (zh) 一种灵活以太网链路管理方法及系统
CN115390991A (zh) 虚拟机的导入导出方法、装置、设备及存储介质
WO2024061005A1 (zh) 一种音视频缓冲区读取处理方法及装置
CN115904341A (zh) 一种面向移动端混合开发的前端优化方法及装置
KR20220159456A (ko) 서비스 처리 방법, 장치, 설비 및 저장 매체
CN114244758B (zh) 安卓平台的网络诊断方法、存储介质、电子设备及系统
CN108073424A (zh) 组件接口的调用方法及装置
CN105957542B (zh) 一种音频文件编辑方法及装置
CN112347166B (zh) 一种提高接口表查找效率的方法及系统
US20240221127A1 (en) Image processing method, device, and storage medium
CN113905321A (zh) 基于对象音频通道元数据和生成方法、设备及存储介质
CN104660478B (zh) 一种实现隧道间数据流串接的方法和装置
CN118519934A (zh) 基于远程直接内存访问rdma的数据传输方法、设备、电子设备和计算机存储介质
WO2021248888A1 (zh) Web端视频播放方法、装置及计算机设备
CN109842498B (zh) 一种客户端配置方法、服务器、客户端及电子设备
CN116112580A (zh) 一种电力低延时业务的硬件流水线gtp数据分流方法及装置
CN115865837A (zh) 正交分流设备的流量转发方法、装置、设备和介质
CN109857343B (zh) 磁盘空间释放方法及装置
CN116151530A (zh) 数据处理方法及装置、数据处理系统及业务系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19935149

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19935149

Country of ref document: EP

Kind code of ref document: A1