A method and terminal for querying the cloud management backend of a terminal
Through the terminal query of the cloud management backend to which it belongs, the problem of inefficient and high cost of writing Android ROM packages caused by multiple backends in smart terminal development is solved, and the online activation and resource acquisition of terminals and sub-management platforms is realized, and the development efficiency is improved. and reduce costs.
Patent Information
- Application Number
- CN202010179509.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-16
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2040-03-16
AI Technical Summary
In the smart terminal development stage, the existing technology requires writing different Android ROM packages for different management backgrounds, resulting in increased development time and maintenance difficulty, inefficient efficiency and high cost.
Through the terminal query method of belonging to the cloud management backend, the terminal's system service component sends backend information request instructions, the management backend determines the sub-management platform based on the terminal identification and model, updates the application component interface information in the terminal, and realizes the terminal and sub-management platforms. Online activation and resource acquisition.
There is no need to write different Android ROM packages, which improves development efficiency, reduces labor costs, and simplifies interface management between terminal and management backend.
Smart Images

Figure CN111273935B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to terminal technology, and in particular to a method and a terminal for a terminal to query a cloud management backend. Background Art
[0002] As a standard feature of smart terminals, they are generally connected to a cloud management background to control the terminal and distribute resources (such as application markets and OTA (Over The Air)).
[0003] The general practice is that the application component of the smart terminal (terminal for short) pre-builds the interface address of the management background into the application during the development stage, and sets the request timing to request the management background interface to obtain data. However, when the same batch of terminals of the same type need different management backgrounds of the same type to obtain resources, it is necessary to write the interface address of the management background built into the terminal component separately. This will lead to multiple different versions of the Android ROM of the terminal, increasing the development time and maintenance difficulty. In particular, when the terminal needs to be OTA, different Android ROM packages need to be written according to different background versions, resulting in low efficiency.
[0004] In view of the above shortcomings that Android ROM needs to have a built-in management background interface, the existing technology provides two solutions:
[0005] 1. One is to customize the Android ROM, that is, when the terminal needs to connect to different management backends, the interface of the application component is first built in, but when several backends appear, several Android ROM packages are required.
[0006] 2. One is to customize the application program, and connect to multiple management backends by customizing different applications separately.
[0007] However, the above-mentioned prior art method does not improve the efficiency of Android ROM writing, and the cost of writing different Android ROMs for different management backends is too high. Summary of the invention
[0008] In order to solve the problems existing in the prior art, at least one embodiment of the present invention provides a method and a terminal for a terminal to query a cloud management backend to which it belongs.
[0009] In a first aspect, an embodiment of the present invention provides a method for a terminal to query a cloud management backend, including:
[0010] When the terminal supporting the Android system receives an instruction for triggering an online operation, the system service component BS of the terminal sends a background information request instruction to the terminal management background, wherein the background information request instruction includes the terminal identification and the terminal model;
[0011] The BS of the terminal receives the response information fed back by the terminal management background according to the background information request instruction, wherein the response information is information including information of the sub-management platform to which the terminal belongs, sent by the terminal management background after determining that the terminal meets the conditions according to the identification and model;
[0012] The BS of the terminal interacts with the sub-management platform according to the information of the sub-management platform to realize online activation of the terminal on the sub-management platform; and after online activation, updates the interface information of the application components in the terminal that need to obtain resources online according to the information of the sub-management platform.
[0013] In some embodiments, the terminal supporting the Android system receives an instruction for triggering an online operation, including:
[0014] The terminal supporting the Android system receives the boot command;
[0015] or,
[0016] At least one application component in the terminal that needs to be online sends an inquiry instruction to the BS of the terminal to determine whether to switch the management background.
[0017] In some embodiments, the response information includes: the interface domain name of the sub-management platform, that is, the interface address prefix information;
[0018] Correspondingly, the BS of the terminal interacts with the sub-management platform according to the information of the sub-management platform to realize online activation of the terminal on the sub-management platform; and after online activation, the interface information of the application component in the terminal that needs to obtain resources online is updated according to the information of the sub-management platform, including:
[0019] The BS updates the interface prefix domain name of the BS according to the interface domain name of the sub-management platform, and interacts with the sub-management platform corresponding to the interface domain name to realize online activation of the terminal on the sub-management platform; and after online activation, the interface prefix domain name of the application component in the terminal is updated using the interface domain name of the sub-management platform;
[0020] or,
[0021] Alternatively, the BS interacts with the sub-management platform corresponding to the interface domain name of the sub-management platform according to the interface domain name of the sub-management platform to realize online activation of the terminal on the sub-management platform; and after online activation, the interface prefix domain name of the application component in the terminal is updated using the interface domain name of the sub-management platform.
[0022] In some embodiments, the interface structures of the applications that need to obtain resources online in the terminals of the same model are consistent before the terminals are used;
[0023] The BS of the terminal has the interface information of the terminal management background pre-installed.
[0024] In some embodiments, the BS of the terminal interacts with the sub-management platform according to the information of the sub-management platform to realize online activation of the terminal on the sub-management platform, including:
[0025] The BS of the terminal sends online verification information to the sub-management platform according to the information of the sub-management platform, wherein the online verification information includes the identification and model of the terminal;
[0026] The BS of the terminal receives a successful activation response returned by the sub-management platform, where the successful activation response is sent by the sub-management platform after verifying the identifier and model;
[0027] The BS of the terminal sends the successful activation response to the terminal management backend.
[0028] In a second aspect, an embodiment of the present invention further provides a method for a terminal to query a cloud management backend, including:
[0029] The terminal management backend receives a backend information request instruction including a terminal identification and model sent by a BS of any terminal;
[0030] The terminal management background determines whether the terminal meets the conditions based on the terminal identification and model. If so, it obtains the information of the sub-management platform to which the terminal belongs, and sends the obtained information of the sub-management platform to the BS of the terminal, so that the BS updates the interface information of the application components in the terminal that need to obtain resources online according to the information of the sub-management platform.
[0031] In some embodiments, the terminal management backend determines whether the terminal meets the conditions according to the terminal identification and model, and if so, obtains information of the sub-management platform to which the terminal belongs, including:
[0032] The terminal management backend determines whether the model exists in the preset model data according to the model;
[0033] If so, determining whether the terminal has been entered into the designated system according to the identifier;
[0034] If it has been entered, determining whether the information of the sub-management platform has been sent to the BS of the terminal;
[0035] If it has not been sent, the belonging management data is searched to obtain the information of the sub-management platform to which the terminal belongs.
[0036] In some embodiments, after determining whether the information of the sub-management platform has been sent to the BS of the terminal, the method further includes:
[0037] If it has been sent, determine whether the information of the sub-management platform in the attribution management data is updated;
[0038] If updated, search the belonging management data to obtain the updated information of the sub-management platform to which the terminal belongs;
[0039] Otherwise, a feedback response indicating that the sub-management platform information is not updated is sent to the BS of the terminal.
[0040] In some embodiments, after sending the acquired information of the sub-management platform to the BS of the terminal, the method further includes:
[0041] The terminal management background receives the result information of the activation interaction with the sub-management platform sent by the BS of the terminal.
[0042] In a third aspect, an embodiment of the present invention further provides a terminal, including: a transceiver, a processor, and a memory;
[0043] The transceiver is used to send a background information request instruction to the terminal management background when receiving the instruction for triggering the online operation, and the background information request instruction includes the identifier of the terminal and the model of the terminal;
[0044] The transceiver is further used to receive response information fed back by the terminal management background according to the background information request instruction and store it in the memory, wherein the response information is information including information of the sub-management platform to which the terminal belongs, which is sent by the terminal management background after determining that the terminal meets the conditions according to the identification and model;
[0045] The processor is used to interact with the sub-management platform according to the information of the sub-management platform in the memory, realize the online activation of the terminal on the sub-management platform, and update the interface information of the application components in the terminal that need to obtain resources online according to the information of the sub-management platform after the online activation.
[0046] In some embodiments, the response information includes: the interface domain name of the sub-management platform, that is, the interface address prefix information;
[0047] The processor is used to interact with the sub-management platform corresponding to the interface domain name according to the interface domain name of the sub-management platform, so as to realize online activation of the terminal on the sub-management platform; and after the online activation, the interface prefix domain name of the application component in the terminal is updated using the interface domain name of the sub-management platform.
[0048] In some embodiments, the interface structures of the applications that need to obtain resources online in the terminals of the same model are consistent before the terminals are used;
[0049] The terminal has interface information of the terminal management background pre-installed in the terminal.
[0050] In a fourth aspect, an embodiment of the present invention further provides a terminal management background, including: a transceiver, a processor and a memory;
[0051] The transceiver is used to receive a background information request instruction including a terminal identification and model sent by a BS of any terminal and store it in the memory;
[0052] The processor is used to determine whether the terminal meets the conditions according to the terminal identification and model, and if so, obtain the information of the sub-management platform to which the terminal belongs;
[0053] The transceiver is further used to send the acquired information of the sub-management platform to the BS of the terminal, so that the BS updates the interface information of the application components in the terminal that need to acquire resources online according to the information of the sub-management platform.
[0054] In some embodiments, the transceiver is further configured to receive result information of activation interaction between the BS of the terminal and the sub-management platform.
[0055] In a fifth aspect, an embodiment of the present invention further provides a method for a terminal to query a cloud management backend, including:
[0056] When the terminal supporting the Android system receives an instruction for triggering an online operation, the BS of the terminal sends a background information request instruction to the terminal management background, wherein the background information request instruction includes the terminal identifier and the terminal model;
[0057] The BS of the terminal receives the response information fed back by the terminal management background according to the background information request instruction, wherein the response information includes: the interface domain name of the sub-management platform, and the sub-management platform is a server used by the application component in the terminal to connect and obtain resources; wherein the response information is information including information of the sub-management platform to which the terminal belongs, which is sent by the terminal management background after determining that the terminal meets the conditions according to the identification and model;
[0058] The BS of the terminal updates the interface prefix domain name of the BS according to the interface domain name of the sub-management platform, and interacts with the sub-management platform corresponding to the interface domain name to realize online activation of the terminal on the sub-management platform; and after online activation (i.e. successful online activation), the interface prefix domain name of the application component in the terminal is updated using the interface domain name of the sub-management platform.
[0059] In some embodiments, the terminal includes: a network camera or a POS terminal.
[0060] In some embodiments, the interface structures of applications / application components that need to be accessed online for resources by terminals of the same model held by the user are consistent before the terminals are used.
[0061] In some embodiments, the BS is a system service component of the bottom layer of the Android system in the terminal.
[0062] In some embodiments, the terminal identifier and the terminal model in the background information request instruction sent by the BS of the terminal to the terminal management background are data encrypted using an interface data encryption key;
[0063] Correspondingly, after receiving the encrypted data, the terminal management background uses the interface data decryption key to decrypt the data and obtain the identifier and model of the terminal.
[0064] In some embodiments, the sub-management platform stores information used by the BS of the terminal to verify the terminal during online activation (such as information such as the model and identification of the terminal after it is sold to the user).
[0065] In a sixth aspect, an embodiment of the present invention further provides a method for a terminal to query a cloud management backend, including:
[0066] The terminal management backend receives a backend information request instruction including a terminal identification and model sent by a BS of any terminal;
[0067] The terminal management background determines whether the terminal meets the conditions based on the terminal identification and model. If so, it obtains the interface domain name of the sub-management platform to which the terminal belongs, and sends the obtained interface domain name of the sub-management platform to the BS of the terminal. The sub-management platform is a server used by application components in the terminal to connect and obtain resources; so that the BS updates the interface prefix domain name of the application components in the terminal that need to obtain resources online according to the interface domain name of the sub-management platform after being activated online with the sub-management platform (i.e., successfully activated online).
[0068] In some embodiments, the method further comprises:
[0069] The terminal management backend receives the result information of the activation interaction with the sub-management platform sent by the BS of the terminal.
[0070] In a seventh aspect, an embodiment of the present invention further provides a terminal, wherein the terminal is a terminal supporting an Android system, and a BS in the terminal includes: a transceiver unit and a processing unit;
[0071] The transceiver unit is used to send a background information request instruction to the terminal management background when receiving the instruction for triggering the online operation, and the background information request instruction includes the identifier of the terminal and the model of the terminal;
[0072] Also used to receive response information fed back by the terminal management background according to the background information request instruction, the response information including: the interface domain name of the sub-management platform, the sub-management platform is a server used by the application component in the terminal to connect and obtain resources; wherein the response information is information including information of the sub-management platform to which the terminal belongs, which is sent by the terminal management background after determining that the terminal meets the conditions according to the identification and model;
[0073] The processing unit is used to update the interface prefix domain name of the BS according to the interface domain name of the sub-management platform, and interact with the sub-management platform corresponding to the interface domain name to realize online activation of the terminal on the sub-management platform; and after online activation (i.e. successful online activation), the interface prefix domain name of the application component in the terminal is updated using the interface domain name of the sub-management platform.
[0074] In an eighth aspect, an embodiment of the present invention further provides a terminal management background, comprising: a transceiver unit, a processing unit and a storage unit;
[0075] The transceiver unit is used to receive a background information request instruction including a terminal identification and model sent by a BS of any terminal;
[0076] The processing unit is used to determine whether the terminal meets the conditions based on the terminal identification and model. If so, obtain the interface domain name of the sub-management platform to which the terminal belongs from the storage unit, and send the obtained interface domain name of the sub-management platform to the BS of the terminal, where the sub-management platform is a server used by application components in the terminal to connect and obtain resources; so that the BS updates the interface prefix domain name of the application components in the terminal that need to obtain resources online according to the interface domain name of the sub-management platform after being activated online with the sub-management platform (i.e., successfully activated online).
[0077] It can be seen that in at least one embodiment of the embodiments of the present invention, when the terminal receives an instruction to trigger an online operation, the Base Service (system service component) at the bottom of Android first requests a unified terminal management background (mother cloud), and the mother cloud determines which sub-management platform (sub-cloud) each terminal should request, and then returns the interface domain name of the sub-cloud (such as https: / / api.sunmi.com) to the Base Service of the terminal. After the online activation between the terminal and the sub-management platform, the interface prefix domain name information of the application component in the terminal that needs to obtain resources online can be updated according to the information of the sub-management platform. As a result, during the terminal development stage, there is no need to compile different Android ROM packages, thereby improving development efficiency and reducing labor costs.
[0078] That is to say, for the same type of terminals, the method of the embodiment of the present invention greatly improves the efficiency of writing Android ROM in the development stage, saving the time and manpower cost of compiling different Android ROM packages for different management backends. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0080] Figure 1 A flowchart of a method for a terminal to query its cloud management backend provided by an embodiment of the present invention;
[0081] Figure 2A A flowchart of another method for a terminal to query its cloud management backend provided by an embodiment of the present invention;
[0082] Figure 2B and Figure 2C They are signaling diagrams of part of the process of the method for a terminal to query its cloud management backend provided by the present invention;
[0083] Figure 3 A flowchart of another method for a terminal to query its cloud management backend provided by an embodiment of the present invention;
[0084] Figure 4 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention;
[0085] Figure 5 A schematic diagram of the structure of the terminal management backend provided by an embodiment of the present invention;
[0086] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0087] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0088] It should be noted that, in this document, relational terms such as “first” and “second” are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.
[0089] Before explaining the method of the embodiment of the present invention, it should be noted that the terminal in the embodiment of the present invention refers to the method corresponding to the terminal that has been sold to the user side. In the prior art, when the user uses the terminal, there is a confusion of management platforms that require the networking of various application components in the terminal, and at the same time, during the development stage of these terminal manufacturers, there are multiple different versions of Android ROM for each terminal, which increases the development time and maintenance difficulty. For this reason, the method of the embodiment of the present invention can greatly improve the efficiency of Android ROM writing, saving the time of compiling different Android ROM packages for different management backends at the factory stage.
[0090] like Figure 1 As shown, this embodiment provides a flowchart of a method for a terminal to query its cloud management backend. The method of this embodiment may include the following steps:
[0091] 101. When a terminal supporting the Android system receives an instruction for triggering an online operation, the system service component BS of the terminal sends a background information request instruction to the terminal management background, where the background information request instruction includes the terminal identifier and the terminal model.
[0092] For example, a terminal supporting the Android system receiving an instruction for triggering an online operation may include: the terminal receiving a power-on instruction, or at least one application component in the terminal that needs to be online sending an inquiry instruction to the BS of the terminal to determine whether to switch the management background.
[0093] In this embodiment, the interface structure of the application that needs to obtain resources online in the same model of terminals held by different customers / users is consistent before the terminal is used; and the interface information of the terminal management background is pre-built in the BS of the terminal. Before the terminal is used in this embodiment can also be understood as after the terminal is sold from the sales end to the user / customer and before the user / customer uses it.
[0094] In this embodiment, there are multiple terminals of the same model, so the model cannot be used as information included in the terminal identification. In this embodiment, the terminal identification is information used to indicate the uniqueness of the terminal.
[0095] It is particularly noted that the BS of this embodiment is the Base Service of the Android bottom layer in the terminal. In the specific implementation process, the interface information that requires the terminal management background can be pre-built into the Base Service of the Android bottom layer, so that each time the terminal receives a power-on command, the Base Service of the terminal is triggered to send a background information request instruction to the terminal management background corresponding to the built-in interface information. It should be noted that the terminal of this embodiment can be a network camera used in a shopping mall, a POS terminal used in various stores, etc.
[0096] 102. The BS of the terminal receives response information fed back by the terminal management background according to the background information request instruction. The response information is information including information of the sub-management platform to which the terminal belongs, sent by the terminal management background after determining that the terminal meets the conditions according to the identification and model.
[0097] For example, the response information in this step may include: the interface domain name of the sub-management platform, that is, the interface address prefix information, for example, the interface domain name of the sub-cloud (such as https: / / api.sunmi.com) is returned to the BS of the terminal.
[0098] The terminal in this embodiment satisfies the condition, which can be understood as the model and identification of the terminal can be queried in the relevant database of the terminal management background (such as the query database, the attribution management database or the information library, etc.). For example, the query database can be searched according to the "SN (hardware unique serial number) and model information" sent by the terminal. The name and location of the database storing the model and identification in the terminal management background are not limited in this embodiment.
[0099] In order to better understand the terminal management background, namely the parent cloud, in this embodiment, an attribution management database for implementing terminal attribution management can be set in the terminal management background. After a terminal is sold offline, the model, identification and configured sub-cloud information of the terminal sold can be pre-configured in the attribution management database. Then, when the terminal management background receives the background information request instruction, it can perform subsequent search processes by searching the attribution management database.
[0100] 103. The BS of the terminal interacts with the sub-management platform according to the information of the sub-management platform (eg Figure 2C As shown), the terminal is activated online on the sub-management platform; and after the online activation, the interface information of the application components in the terminal that need to obtain resources online is updated according to the information of the sub-management platform.
[0101] For example, the response information includes: the interface domain name of the sub-management platform;
[0102] Then, the BS updates the interface prefix domain name of the BS according to the interface domain name of the sub-management platform, and interacts with the sub-management platform corresponding to the interface domain name to realize the online activation of the terminal on the sub-management platform; and after the online activation, the interface domain name of the sub-management platform is used to update the interface prefix domain name of the application component in the terminal. Alternatively, the BS interacts with the sub-management platform corresponding to the interface domain name according to the interface domain name of the sub-management platform to realize the online activation of the terminal on the sub-management platform; and after the online activation, the interface domain name of the sub-management platform is used to update the interface prefix domain name of the application component in the terminal.
[0103] In addition, during the specific implementation process, another situation may also occur. When other application components (such as application market, OTA, MSR (card reading data configuration), remote control) are started, they interact with the BS so that the BS updates all interface prefix domain names of the started application components according to the interface domain name of the acquired sub-management platform, thereby realizing a method for querying and switching the sub-management platform to which the application components in the terminal belong.
[0104] In this embodiment, each time an application component in the terminal is started (eg, each time a cold start is performed), it needs to interact with the BS to determine whether to update the interface prefix domain name in the application component.
[0105] It should be noted that in actual applications, the same application component may have multiple interfaces. For example, the application market has "get application list interface" and "get updated application interface". The address structure of these two interfaces is generally written as https: / / sunmi.com / grt app list... and https: / / sunmi.com / get updated app list... In this case, the interface prefix domain name in the addresses of the two interfaces is the same, and the specific addresses behind the two interface addresses are defined according to the function type. If the interface prefix domain name is updated, all interface prefix domain names of an application component will be updated.
[0106] In this embodiment, the interface structures of the same type of different sub-clouds are fixed to be consistent before the terminal leaves the factory, and then the interface information of the terminal online background is configured through a software program such as the method of the above embodiment to achieve flexible switching. The above method greatly improves the efficiency of Android ROM writing in the scenario where the same type of terminals require the same type of cloud management background, saving the time and manpower cost of compiling different Android ROM packages for different management backgrounds at the factory stage.
[0107] like Figure 2A As shown, this embodiment provides a flowchart of a method for a terminal to query its cloud management backend. The method of this embodiment may include the following steps:
[0108] 201. The terminal of the Android system receives a power-on instruction, and the BS in the terminal sends a background information request instruction to the terminal management background, where the background information request instruction includes the terminal identifier (such as SN) and the terminal model.
[0109] It should be noted that the BS is called a "system basic service / system service component" and is used to obtain the initialization information of the terminal each time the terminal is powered on; in this embodiment, the BS can "listen to the power-on broadcast" to sense the power-on of the terminal.
[0110] In this embodiment, the identifier and model in the background information request instruction may be encrypted using an interface data encryption key and sent to the terminal management background.
[0111] 202. After receiving the background information request instruction, the terminal management background determines whether the conditions are met according to the identification and model.
[0112] For example, if the terminal sends encrypted information, the terminal management background can use the interface data decryption key to decrypt the encrypted information to obtain the identification and model.
[0113] The above-mentioned determination of whether the conditions are met based on the identification and model can be explained as follows:
[0114] First, determine whether the model exists in the preset model data (such as the aforementioned attribution management database) based on the model; if it exists, determine whether the terminal has been entered into the designated system (i.e., whether it has been put into storage) based on the identifier; if it has been entered, determine whether the information of the sub-management platform has been sent to the BS of the terminal; if it has not been sent, search the attribution management data / attribution management database to obtain the information of the sub-management platform to which the terminal belongs.
[0115] In practice, if the aforementioned attribution management database does not contain the terminal model, the process ends, and the terminal management backend returns a failure response to the terminal;
[0116] In addition, if the terminal's identification is not entered into the designated system (which can be understood as not being sold to the customer), the terminal management backend returns a failure response to the terminal;
[0117] Furthermore, if the model number exists in the above-mentioned attribution management database and has been stored, and the terminal management background has sent the sub-management platform information to the BS of the terminal, the terminal management background returns a response to the terminal indicating that the sub-management platform information has been sent.
[0118] Usually, after each terminal is sold to the user, the seller will enter the model of the sold terminal into a designated system / database, that is, store it in the warehouse.
[0119] 203. After determining that the conditions are met according to the identification and model, the terminal management background obtains information of the sub-management platform to which the terminal belongs, and sends the obtained information of the sub-management platform to the BS of the terminal.
[0120] In actual applications, if the terminal management background determines that at least one of the above identification and model does not meet the conditions, the information of the sub-management platform to which the terminal belongs is not obtained.
[0121] 204. The BS of the terminal interacts with the sub-management platform according to the information of the sub-management platform to realize online activation of the terminal on the sub-management platform.
[0122] For example, the BS of the terminal sends online verification information to the sub-management platform according to the information of the sub-management platform, and the online verification information includes the identifier and model of the terminal.
[0123] The BS of the terminal receives a successful activation response returned by the sub-management platform, where the successful activation response is sent by the sub-management platform after verifying the identifier and model.
[0124] 205. After online activation, the BS of the terminal updates the interface information of the application components in the terminal that need to obtain resources online according to the information of the sub-management platform.
[0125] 206. The BS of the terminal sends the result information of the activation interaction with the sub-management platform to the terminal management background.
[0126] In actual applications, the sub-management platform stores information used by the BS of the terminal to verify the terminal during online activation, such as information such as the terminal's identification and model.
[0127] In addition, the sub-management platform can also provide feedback to the terminal management platform based on the interaction results with the terminal's BS, for example, the status information of the activation of the terminal's BS in the sub-management platform can be fed back. The status information may include information about the terminal to which the successfully activated BS belongs, or information about unsuccessful activation.
[0128] Combination Figure 2B As shown in the figure, the terminal management backend sends the sub-cloud interface domain name to the POS terminal. Figure 2B The interactive process of the online activation between the BS and the sub-cloud 1 or sub-cloud 2 is not shown. After the interface prefix domain name of the application component in the POS terminal is updated, subsequent operations are performed according to the updated interface prefix domain name. For example, Figure 2B An application component / application (such as remote control) of the POS terminal in the system may send a request to sub-cloud 1, or another application component / application (such as OTA) may send a request to sub-cloud 2.
[0129] The POS terminal is set to connect to the SUNMI management backend at a specific time (such as after each startup). After receiving the background information request instruction sent by the POS terminal, the SUNMI management backend checks whether the terminal meets the conditions. If it meets the conditions, the sub-cloud interface domain name is sent. After the terminal's BS obtains the sub-cloud interface domain name, it updates the internal interface prefix domain name and interacts with the sub-cloud to achieve online activation. After successful activation, the interface prefix domain name of the application component in the terminal is updated, thereby realizing the switching of the sub-cloud management backend.
[0130] After the BS in the terminal of this embodiment obtains the new interface domain name of the sub-cloud, it first activates the sub-cloud online according to the interface domain name and the sub-cloud corresponding to the interface domain name. After the new sub-cloud is successfully activated, it sends an identification of successful activation in the sub-cloud to the parent cloud, and updates the interface prefix domain name of the application component in the terminal.
[0131] In this embodiment, a standard ROM can be configured for the same model of terminal in the research and development stage, and then the mother cloud is uniformly connected when the above method is executed. In the prior art, the ROMs are different. Therefore, since each terminal will be sold to different customers, and different customers will require the terminal to connect to different backends, it is necessary to output a lot of ROMs to meet customer needs. The method of this embodiment realizes the output of only one set of ROMs, and uses a configured method to meet the needs of customers to connect to different backends, avoiding the disadvantages of outputting multiple sets of ROMs. Furthermore, the method of this embodiment can greatly improve the efficiency of Android ROM writing in the scenario where the same type of specific terminals require the same type of cloud management backend, saving the time and manpower cost of compiling different Android ROM packages for different management backends.
[0132] like Figure 3 As shown, this embodiment provides a flowchart of a method for a terminal to query its cloud management backend. The method of this embodiment may include the following steps:
[0133] 301. The terminal management background receives a background information request instruction including a terminal identification and model sent by a BS of any terminal;
[0134] 302. The terminal management background determines whether the terminal meets the conditions based on the terminal identification and model. If so, it obtains the information of the sub-management platform to which the terminal belongs, and sends the obtained information of the sub-management platform to the BS of the terminal, so that the BS updates the interface information of the application components in the terminal that need to obtain resources online according to the information of the sub-management platform.
[0135] To better understand the content of step 302, Figure 2C Some of the contents in 302 are explained as follows:
[0136] The terminal management backend determines whether the terminal meets the conditions according to the terminal identification and model. If so, the information of the sub-management platform to which the terminal belongs is obtained, including the following sub-steps not shown in the figure:
[0137] 3021. The terminal management background determines whether the model exists in the preset model data (such as the attribution management data) according to the model; if it exists, execute sub-step 3022; if it does not exist, feedback a failure response to the terminal.
[0138] 3022. If it exists, determine whether the terminal has been entered into the designated system (such as whether it has been stored) according to the identifier. If it has been entered, execute sub-step 3023. Otherwise, feedback a failure response to the terminal.
[0139] 3023. If it has been entered, determine whether the information of the sub-management platform has been sent to the BS of the terminal. If it has not been sent, execute sub-step 3024. If it has been sent, execute sub-step 3025.
[0140] 3024. If it has not been sent, search for the attribution management data to obtain the information of the sub-management platform to which the terminal belongs.
[0141] 3025. If it has been sent, determine whether the information of the sub-management platform in the attribution management data is updated; if it is updated, execute sub-step 3026; otherwise, execute sub-step 3027;
[0142] 3026. If updated, search for the attribution management data to obtain the updated information of the sub-management platform to which the terminal belongs;
[0143] 3027. If not updated, send a feedback response to the BS of the terminal indicating that the sub-management platform information is not updated.
[0144] In this embodiment, the information of the sub-management platform is the interface domain name of the sub-management platform. The BS can update the interface prefix domain name of the BS according to the interface domain name of the sub-management platform, and interact with the sub-management platform corresponding to the interface domain name to realize online activation of the terminal on the sub-management platform; and after online activation, the interface prefix domain name of the application component in the terminal is updated using the interface domain name of the sub-management platform.
[0145] Of course, the BS may not update the interface domain name inside the BS, but directly interact with the sub-management platform corresponding to the interface domain name.
[0146] Optionally, in practical applications, the following step 303 not shown in the figure is also included.
[0147] 303. The terminal management background receives the activation interaction result information between the BS of the terminal and the sub-management platform.
[0148] After receiving the result information, the terminal management background can update the internally stored information.
[0149] It should be noted that if the activation interaction result information is failure information, the terminal management background does not update the internal storage information. At the same time, the BS in the terminal restores the interface prefix domain name updated by the BS to the original preset terminal management background information, and does not update the interface prefix domain name of the application component.
[0150] exist Figure 2CWhen the POS terminal is activated for the first time and each subsequent startup, the BS packages "SN, terminal model" to connect to the SUNMI management background (and terminal management background). After the SUNMI management background receives the terminal request, it verifies whether the model exists and whether the SN is in the outbound status. If the above conditions are not met, the terminal request is rejected; if they are met, it determines whether the interface domain name has been returned to the terminal or whether the interface domain name has been changed, and then returns the latest interface domain name to the terminal.
[0151] After the POS terminal obtains the interface domain name, it connects to the sub-cloud for activation. After successful activation in the sub-cloud, the sub-cloud returns an activation success mark to the terminal. The terminal then sends the activation success mark to the SUNMI management backend, which then responds with a page status. At this point, the terminal completes the operation of querying the management backend and switching.
[0152] The method of this embodiment avoids the problem of customized interfaces of Android ROM in various applications that need to be online in the prior art, improves the R&D efficiency of developers, and reduces labor costs.
[0153] In the prior art, many ROMs need to be output to meet customer needs. In the embodiment of the present invention, only one set of ROM is output before the terminal leaves the factory, and a configurable method is used to meet the customer's needs for connecting to different backends, avoiding the disadvantage of outputting multiple sets of ROMs.
[0154] like Figure 4 As shown, Figure 4 A schematic diagram showing the structure of a terminal provided by an embodiment of the present invention is shown. The terminal of this embodiment may include: a transceiver 41, a processor 42 and a memory 43;
[0155] The transceiver 41 is used to send a background information request instruction to the terminal management background when receiving the instruction for triggering the online operation, and the background information request instruction includes the identifier of the terminal and the model of the terminal;
[0156] The transceiver 41 is also used to receive the response information fed back by the terminal management background according to the background information request instruction and store it in the memory 43, wherein the response information is the information including the information of the sub-management platform to which the terminal belongs, which is sent by the terminal management background after determining that the terminal meets the conditions according to the identification and model;
[0157] The processor 42 is used to interact with the sub-management platform according to the information of the sub-management platform in the memory to realize online activation of the terminal on the sub-management platform, and after online activation, update the interface information of the application components in the terminal that need to obtain resources online according to the information of the sub-management platform.
[0158] In this embodiment, the response information includes: the interface address prefix information of the sub-management platform, that is, the interface domain name;
[0159] The processor 42 is further configured to replace the interface prefix information in all the interface information of the application component with the interface address prefix information of the sub-management platform after online activation.
[0160] It is particularly noted that the interface structures of the applications that need to obtain resources online in the terminals of the same model are consistent before the terminals are used; the interface information of the terminal management backend is pre-built into the terminals.
[0161] The terminal in this embodiment can fix the interface structure of the same type of different backgrounds to be consistent before leaving the factory. Each time the terminal is turned on, the BS at the bottom of Android first requests a unified terminal management background (mother cloud), and the mother cloud determines which child management platform (child cloud) each terminal should request, and then returns the interface prefix (such as https: / / api.sunmi.com) address of the child cloud to the BS of the terminal. When other application components are started, the BS is first asked whether it needs to switch the management background. If it needs to switch, the BS obtains the interface domain name from the mother cloud, and then replaces all the interface prefix domain names of the components, thereby realizing the method of terminal query and switching the cloud management background.
[0162] like Figure 5 As shown, Figure 5 A schematic diagram showing the structure of a terminal management backend provided by an embodiment of the present invention is shown. The terminal management backend (ie, a server) of this embodiment may include: a transceiver 51, a processor 52, and a memory 53;
[0163] The transceiver 51 is used to receive a background information request instruction including a terminal identification and model sent by a BS of any terminal and store it in the memory 53;
[0164] The processor 52 is used to determine whether the terminal meets the conditions according to the terminal identification and model, and if so, obtain the information of the sub-management platform to which the terminal belongs;
[0165] The transceiver 51 is further configured to send the acquired information of the sub-management platform to the BS of the terminal, so that the BS updates the interface information of the application components in the terminal that need to acquire resources online according to the information of the sub-management platform.
[0166] In this embodiment, the transceiver 51 is further configured to receive the result information of the activation interaction with the sub-management platform sent by the BS of the terminal.
[0167] The terminal management backend of this embodiment interacts with the terminal to implement a method for terminal query and switching of the terminal to a cloud management backend.
[0168] This embodiment provides a structural diagram of an electronic device, such as Figure 6 As shown, Figure 6 The electronic device shown may include: at least one processor 61, at least one memory 62, at least one network interface 64 and / or other user interface 63. The various components in the electronic device are coupled together via a bus system 65. It is understood that the bus system 65 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 65 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 65 is not shown in FIG. Figure 6 Various buses are labeled as bus system 65 .
[0169] The electronic device of this embodiment may be Figure 4 The terminal shown can also be Figure 5 The terminal management backend shown can execute the steps of the aforementioned method of the terminal querying the cloud management backend to which it belongs.
[0170] The user interface 63 may include a display, a keyboard, or a pointing device (eg, a mouse or a touch pad, etc.).
[0171] It can be understood that the memory 62 in this embodiment can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DRRAM). The memory 62 described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0172] In some implementations, the memory 62 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 621 and application programs 622 .
[0173] The operating system 621 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 622 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 622.
[0174] In an embodiment of the present invention, the processor 61 calls a program or instruction stored in the memory 62, specifically, a program or instruction stored in the application 622, and the processor 61 is used to execute the method steps provided in the first aspect or the second aspect.
[0175] The method disclosed in the above embodiment of the present invention can be applied to the processor 61, or implemented by the processor 61. The processor 61 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 61 or the instructions in the form of software. The above processor 61 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 62, and the processor 61 reads the information in the memory 62 and completes the steps of the above method in combination with its hardware.
[0176] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSP Devices, DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application or a combination thereof.
[0177] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0178] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0179] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0180] In the embodiments provided in the present application, it should be understood that unless there is a clear sequence between the steps of the method embodiments, the execution order can be adjusted arbitrarily. The disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0181] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0182] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0183] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present invention.
[0184] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0185] Those skilled in the art will appreciate that although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features from different embodiments is meant to be within the scope of the present invention and to form different embodiments.
[0186] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for a terminal to query its cloud management backend, characterized in that: include: When the terminal supporting the Android system receives an instruction for triggering an online operation, the BS of the terminal sends a background information request instruction to the terminal management background, wherein the background information request instruction includes the identifier of the terminal and the model of the terminal; The BS of the terminal receives the response information fed back by the terminal management background according to the background information request instruction, wherein the response information is information including information of the sub-management platform to which the terminal belongs, sent by the terminal management background after determining that the terminal meets the conditions according to the identification and model; The BS of the terminal interacts with the sub-management platform according to the information of the sub-management platform to realize online activation of the terminal on the sub-management platform; and after online activation, updates the interface information of the application component in the terminal that needs to obtain resources online according to the information of the sub-management platform; The response information includes: the interface domain name of the sub-management platform; The BS updates the interface prefix domain name of the BS according to the interface domain name of the sub-management platform, and interacts with the sub-management platform corresponding to the interface domain name to realize online activation of the terminal on the sub-management platform; and after online activation, the interface prefix domain name of the application component in the terminal is updated using the interface domain name of the sub-management platform; Alternatively, the BS interacts with the sub-management platform corresponding to the interface domain name according to the interface domain name of the sub-management platform to realize online activation of the terminal on the sub-management platform; and after online activation, the interface domain name of the sub-management platform is used to update the interface prefix domain name of the application component in the terminal; the application component has multiple interfaces, and if the interface prefix domain name is updated, all interface prefix domain names of one application component are updated; The terminal supporting the Android system receives an instruction for triggering an online operation, including: The terminal supporting the Android system receives a power-on command; or, An inquiry instruction sent by at least one application component in the terminal that needs to be online to the BS of the terminal to determine whether to switch the sub-management background; Among them, the interface structure of the application components that need to obtain resources online in the same model of terminal is consistent before the terminal is used.
2. The method according to claim 1, characterized in that The BS of the terminal has the interface information of the terminal management background pre-installed.
3. The method according to claim 1, characterized in that The BS of the terminal interacts with the sub-management platform according to the information of the sub-management platform to realize online activation of the terminal on the sub-management platform, including: The BS of the terminal sends online verification information to the sub-management platform according to the information of the sub-management platform, wherein the online verification information includes the identification and model of the terminal; The BS of the terminal receives a successful activation response returned by the sub-management platform, where the successful activation response is sent by the sub-management platform after verifying the identifier and model; The BS of the terminal sends the successful activation response to the terminal management backend.
4. A method for a terminal to query its cloud management backend, characterized in that: include: The terminal management backend receives a backend information request instruction including a terminal identification and model sent by a BS of any terminal; The terminal management backend determines whether the terminal meets the conditions according to the terminal identification and model, and if so, obtains the information of the sub-management platform to which the terminal belongs, and sends the obtained information of the sub-management platform to the BS of the terminal, so that the BS updates the interface information of the application component in the terminal that needs to obtain resources online according to the information of the sub-management platform; The BS updates the interface prefix domain name of the BS according to the interface domain name of the sub-management platform, and interacts with the sub-management platform corresponding to the interface domain name to realize online activation of the terminal on the sub-management platform; and after online activation, the interface prefix domain name of the application component in the terminal is updated using the interface domain name of the sub-management platform; Alternatively, the BS interacts with the sub-management platform corresponding to the interface domain name according to the interface domain name of the sub-management platform to realize online activation of the terminal on the sub-management platform; and after online activation, the interface prefix domain name of the application component in the terminal is updated using the interface domain name of the sub-management platform; Among them, the interface structure of the application components that need to obtain resources online in the same model of terminal is consistent before the terminal is used.
5. The method according to claim 4, characterized in that The terminal management backend determines whether the terminal meets the conditions according to the terminal identification and model, and if so, obtains information of the sub-management platform to which the terminal belongs, including: The terminal management backend determines whether the model exists in the preset model data according to the model; If so, determining whether the terminal has been entered into the designated system according to the identifier; If it has been entered, determining whether the information of the sub-management platform has been sent to the BS of the terminal; If it has not been sent, the belonging management data is searched to obtain the information of the sub-management platform to which the terminal belongs.
6. The method according to claim 5, characterized in that After determining whether the information of the sub-management platform has been sent to the BS of the terminal, the method further includes: If it has been sent, determine whether the information of the sub-management platform in the attribution management data is updated; If updated, search the belonging management data to obtain the updated information of the sub-management platform to which the terminal belongs; Otherwise, a feedback response indicating that the sub-management platform information is not updated is sent to the BS of the terminal.
7. The method according to claim 6, characterized in that After sending the acquired information of the sub-management platform to the BS of the terminal, the method further includes: The terminal management background receives the result information of the activation interaction with the sub-management platform sent by the BS of the terminal.
8. A terminal, characterized in that: include: transceivers, processors, and memory; The transceiver is used to send a background information request instruction to the terminal management background when receiving the instruction for triggering the online operation, and the background information request instruction includes the identifier of the terminal and the model of the terminal; The transceiver is further used to receive response information fed back by the terminal management background according to the background information request instruction and store it in the memory, wherein the response information is information including information of the sub-management platform to which the terminal belongs, which is sent by the terminal management background after determining that the terminal meets the conditions according to the identification and model; The processor is used to interact with the sub-management platform according to the information of the sub-management platform in the memory, realize the online activation of the terminal on the sub-management platform, and update the interface information of the application component in the terminal that needs to obtain resources online according to the information of the sub-management platform after the online activation; The response information includes: the interface domain name of the sub-management platform; The processor is used to interact with the sub-management platform corresponding to the interface domain name according to the interface domain name of the sub-management platform, so as to realize online activation of the terminal on the sub-management platform; and after online activation, update the interface prefix domain name of the application component in the terminal with the interface domain name of the sub-management platform; Among them, the interface structure of the application components that need to obtain resources online in the same model of terminal is consistent before the terminal is used.
9. A terminal management background, characterized in that: include: transceivers, processors, and memory; The transceiver is used to receive a background information request instruction including a terminal identification and model sent by a BS of any terminal and store it in the memory; The processor is used to determine whether the terminal meets the conditions according to the terminal identification and model, and if so, obtain the information of the sub-management platform to which the terminal belongs; The transceiver is further used to send the acquired information of the sub-management platform to the BS of the terminal, so that the BS updates the interface information of the application component in the terminal that needs to obtain resources online according to the information of the sub-management platform; The BS updates the interface prefix domain name of the BS according to the interface domain name of the sub-management platform, and interacts with the sub-management platform corresponding to the interface domain name to realize online activation of the terminal on the sub-management platform; and after online activation, the interface prefix domain name of the application component in the terminal is updated using the interface domain name of the sub-management platform; Alternatively, the BS interacts with the sub-management platform corresponding to the interface domain name according to the interface domain name of the sub-management platform to realize online activation of the terminal on the sub-management platform; and after online activation, the interface prefix domain name of the application component in the terminal is updated using the interface domain name of the sub-management platform; Among them, the interface structure of the application components that need to obtain resources online in the same model of terminal is consistent before the terminal is used.
10. The terminal management backend according to claim 9, characterized in that: The transceiver is further configured to receive activation interaction result information between the BS of the terminal and the sub-management platform.
Citation Information
Patent Citations
Task information processing method and device and server
CN108037990A