CN113810869A - Upgrade service charging method, device and system - Google Patents

Upgrade service charging method, device and system Download PDF

Info

Publication number
CN113810869A
CN113810869A CN202010547363.2A CN202010547363A CN113810869A CN 113810869 A CN113810869 A CN 113810869A CN 202010547363 A CN202010547363 A CN 202010547363A CN 113810869 A CN113810869 A CN 113810869A
Authority
CN
China
Prior art keywords
license
task
ota
charging
upgrade
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010547363.2A
Other languages
Chinese (zh)
Other versions
CN113810869B (en
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.)
China Mobile Communications Group Co Ltd
China Mobile IoT Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile IoT 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 China Mobile Communications Group Co Ltd, China Mobile IoT Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202010547363.2A priority Critical patent/CN113810869B/en
Publication of CN113810869A publication Critical patent/CN113810869A/en
Application granted granted Critical
Publication of CN113810869B publication Critical patent/CN113810869B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Abstract

The invention provides an upgrade service charging method, a device and a system, which are applied to a charging server, wherein the charging server is a node in a block chain system, and the charging method comprises the following steps: receiving an OTA upgrading task created by a target account of a cloud platform or an application terminal through a calling block link interface; calculating the license consumption quantity required by the OTA upgrading task according to the intelligent contract charging rule of the block chain system; and when the upgrading task is judged to be executable, deducting the license consumption amount in response to the OTA upgrading task, and storing the charging information of the OTA upgrading task in the blockchain system. The embodiment of the invention adopts the block chain system to calculate the charging of the OTA upgrading task, ensures the charging accuracy by a transparent and clear charging principle, is convenient for batch upgrading management and unified charging of the equipment, records the charging information in the block chain system and ensures the safety and reliability of the upgrading service charging.

Description

Upgrade service charging method, device and system
Technical Field
The invention relates to the technical field of Internet of things, in particular to an upgrade service charging method, device and system.
Background
The Over-The-Air (OTA) upgrade charging mode in The prior art mostly adopts monthly-in-The-month charging, that is, a user purchases an upgrade service fee with a fixed amount of money and pays The fixed upgrade service fee in advance according to a certain time, but The charging period is too long according to The monthly-in-The-year charging, The service use condition of The user is uneven in a month period, The charging mode is single according to The fixed configuration, The configuration cannot be flexibly changed in use, The cost is higher in a scene with large service load fluctuation, and The charging accuracy is lower. In addition, the service provider of the internet of things can have over a million sensor devices simultaneously accessed to the cloud platform through the operator network, when one account needs to remotely upgrade a plurality of devices managed by the service provider, the remote upgrade only needs one account to pay uniformly, and the safety and the reliability are low.
Disclosure of Invention
The invention provides an upgrade service charging method, device and system, and solves the problem of poor charging accuracy and safety in the prior art.
The embodiment of the invention provides an upgrade service charging method, which is applied to a charging server, wherein the charging server is a node in a block chain system, and the method comprises the following steps:
receiving an OTA upgrading task created by a target account of a cloud platform or an application terminal through a calling block link interface;
calculating the license consumption quantity required by the OTA upgrading task according to the intelligent contract charging rule of the block chain system;
and when the upgrading task is judged to be executable, deducting the license consumption amount in response to the OTA upgrading task, and storing the charging information of the OTA upgrading task in the blockchain system.
Optionally, the charging information comprises at least one of: account information of the target account, a task number of the OTA upgrading task, license consumption quantity, license residual quantity, license deduction time and license residual quantity updated after deduction of the license consumption quantity.
Optionally, the OTA upgrade service charging method further includes:
determining whether the upgrading task can be executed or not according to the consumption number of the licenses and/or the residual number of the licenses corresponding to the target account;
the step of deducting the license consumption amount in response to the OTA upgrade task when it is determined that the upgrade task is executable, includes:
when the license consumption number is 0, it is determined that the upgrade task is executable, in response to the OTA upgrade task,
alternatively, the first and second electrodes may be,
and when the residual quantity of the licenses corresponding to the target account is larger than or equal to the license consumption quantity, determining that the upgrading task can be executed, and deducting the license consumption quantity from the license consumption quantity.
Optionally, the step of calculating the license consumption amount required by the OTA upgrade task according to the intelligent contract charging rule of the blockchain system includes:
inquiring equipment according to the group ID of the equipment to be upgraded corresponding to the OTA upgrading task to generate an equipment list;
and calculating the license consumption quantity required by the OTA upgrading task according to the equipment list.
Optionally, the step of calculating the license consumption amount required by the OTA upgrade task according to the device list includes:
filtering the devices bound with the licenses in the device list, and generating a device list needing to be upgraded for the OTA upgrade task;
based on the equipment list, calculating the license consumption number required by the OTA upgrading task; wherein one device in the device list corresponds to an independent license.
Optionally, the OTA upgrade service charging method further includes:
and binding the devices in the device list with the licenses one by one and recording the bound licenses of the devices.
Optionally, the OTA upgrade service charging method further includes:
grouping identification codes of equipment accessed to a cloud platform or an application end to obtain an equipment group; wherein one device exists in only one device group, each device has an independent identification code, and each device group has an independent group ID.
Optionally, the step of calculating the license consumption amount required by the OTA upgrade task according to the intelligent contract charging rule of the blockchain system includes:
when the first condition is met, the license consumption quantity required by the OTA upgrading task is 0;
wherein the first condition comprises at least one of:
OTA upgrade tasks are to create an account, initialize the number of licenses of the account, query the remaining number of licenses in the account, query node information in a blockchain system, read a transaction structure definition related field value of an intelligent contract,
and the devices corresponding to the OTA task are bound with the license.
Optionally, the OTA upgrade service charging method further includes:
receiving a purchase request of a target account for OTA upgrade service licenses; wherein the purchase request includes: a license individual purchase request and/or a license package purchase request;
and responding to the purchase request, and storing the number of the licenses purchased by the target account in the blockchain system.
Optionally, the OTA upgrade service charging method further includes:
and when the upgrading task is judged to be executable, prompting the cloud platform or the application end that the upgrading task is successfully created.
The embodiment of the invention also provides an upgrade service charging device, which is applied to a charging server, wherein the charging server is a node of a block chain system, and the device comprises:
the task receiving module is used for receiving an OTA (over the air) upgrading task created by a target account of the cloud platform or the application terminal through a calling block link interface;
the license calculation module is used for calculating the license consumption quantity required by the OTA upgrading task according to the intelligent contract charging rule of the block chain system;
a license deduction module for deducting the license consumption amount in response to the OTA upgrade task when it is determined that the upgrade task is executable, and,
and the task recording module is used for storing the charging information of the OTA upgrading task in the block chain system.
Optionally, the charging information comprises at least one of: account information of the target account, a task number of the OTA upgrading task, license consumption quantity, license residual quantity, license deduction time and license residual quantity updated after deduction of the license consumption quantity.
Optionally, the upgrade service charging apparatus further includes:
the judging module is used for determining whether the upgrading task can be executed or not according to the consumption quantity of the licenses and/or the residual quantity of the licenses corresponding to the target account;
optionally, the license deduction module is specifically configured to:
when the license consumption number is 0, it is determined that the upgrade task is executable, in response to the OTA upgrade task,
alternatively, the first and second electrodes may be,
and when the residual quantity of the licenses corresponding to the target account is larger than or equal to the license consumption quantity, determining that the upgrading task can be executed, and deducting the license consumption quantity from the license consumption quantity.
Optionally, the license calculation module is configured to:
inquiring equipment according to the group ID of the equipment to be upgraded corresponding to the OTA upgrading task to generate an equipment list;
and calculating the license consumption quantity required by the OTA upgrading task according to the equipment list.
Optionally, the license calculation module is configured to:
filtering the devices bound with the licenses in the device list, and generating a device list needing to be upgraded for the OTA upgrade task;
based on the equipment list, calculating the license consumption number required by the OTA upgrading task; wherein one device in the device list corresponds to an independent license.
Optionally, the OTA upgrade service charging apparatus further includes:
and the license binding recording module is used for binding the equipment in the equipment list and the license one by one and recording the bound license of the equipment.
Optionally, the OTA upgrade service charging apparatus further includes:
the grouping module is used for grouping the identification codes of the devices accessed to the cloud platform or the application end to obtain a device group; wherein one device exists in only one device group, each device has an independent identification code, and each device group has an independent group ID.
Optionally, the license calculation module is further configured to:
when the first condition is met, the license consumption quantity required by the OTA upgrading task is 0;
wherein the first condition comprises at least one of:
OTA upgrade tasks are to create an account, initialize the number of licenses of the account, query the remaining number of licenses in the account, query node information in a blockchain system, read a transaction structure definition related field value of an intelligent contract,
and the devices corresponding to the OTA task are bound with the license.
Optionally, the upgrade service charging apparatus further includes:
the purchase processing module is used for receiving a purchase request of a target account for OTA upgrade service licenses; wherein the purchase request includes: a license individual purchase request and/or a license package purchase request;
and the license purchase recording module is used for responding to the purchase request and storing the number of the licenses purchased by the target account into the blockchain system.
Optionally, the OTA upgrade service charging apparatus further includes:
and the prompting module is used for prompting the successful establishment of the upgrading task to the cloud platform or the application terminal when the upgrading task is judged to be executable.
The embodiment of the invention also provides an upgrade service charging system, which comprises: the system comprises a block chain system formed by a charging server and a cloud platform or an application end communicated with the block chain system; wherein, the charging server includes: a processor, a memory coupled to the processor, and a transceiver coupled to the processor; the processor is used for calling and executing the program and the data stored in the memory to realize the steps of the OTA upgrade service charging method.
The technical scheme of the invention has the beneficial effects that: the charging of OTA upgrading tasks is calculated by adopting the block chain system, the charging accuracy is ensured by a transparent and clear charging principle, the batch upgrading management and unified charging of the equipment are facilitated, the charging information is recorded in the block chain system, and the safety and the reliability of the upgrading service charging are ensured.
Drawings
Fig. 1 is a flowchart illustrating an upgrade service charging method according to an embodiment of the present invention;
FIG. 2 is a block diagram of an upgrade service billing apparatus according to an embodiment of the present invention;
FIG. 3 is a block diagram of an upgrade service billing system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an upgrade service charging server according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided only to help the full understanding of the embodiments of the present invention. Thus, it will be apparent to those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the invention. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In addition, the terms "system" and "network" are often used interchangeably herein.
In the embodiments provided herein, it should be understood that "B corresponding to a" means that B is associated with a from which B can be determined. It should also be understood that determining B from a does not mean determining B from a alone, but may be determined from a and/or other information.
The embodiment of the invention provides an upgrade service charging method, which is applied to a charging server, wherein the charging server is a node in a block chain system, and as shown in fig. 1, the method specifically comprises the following steps:
step 11: receiving an OTA upgrading task created by a target account of the cloud platform or the application terminal through a calling block link interface.
A user can open or subscribe OTA upgrading service aiming at the Internet of things equipment through a cloud platform or an application terminal, a plurality of charging servers form a block chain system, and the plurality of charging servers can be regarded as computer equipment and are communicated with one another to form the block chain system. One billing server acts as a node of the blockchain system, and the status of each billing server in the blockchain system is equal in the embodiment of the present invention. In order to improve the reliability of charging, in one embodiment, when a certain charging server receives an OTA upgrade task, the charging server may broadcast the OTA upgrade task to other nodes in the blockchain system for authentication, and when the authentication is passed, the subsequent steps are executed.
Step 12: and calculating the license consumption quantity required by the OTA upgrading task according to the intelligent contract charging rule of the block chain system.
The intelligent contract charging rules are stored in all charging servers of the block chain system, and in order to improve the charging accuracy and reliability, the license consumption quantity with the same calculation result of all the charging servers or the charging servers exceeding a certain proportion in the block chain system is used as the license consumption quantity required by the OTA upgrading task, so that the random deduction caused by calculation errors can be reduced.
Step 13: and when the upgrading task is judged to be executable, deducting the license consumption amount in response to the OTA upgrading task, and storing the charging information of the OTA upgrading task in the blockchain system.
Therefore, the embodiment of the invention calculates the license consumption number of the OTA upgrading task through the blockchain system, and stores the charging information of the OTA upgrading task in the blockchain system, thereby improving the accuracy and the safety of charging.
Optionally, the charging information stored by the blockchain system includes at least one of: account information of a target account initiating the OTA upgrade task, a task number of the OTA upgrade task, license consumption quantity, license residual quantity, license deduction time, and license residual quantity updated after deduction of the license consumption quantity.
Optionally, the OTA upgrade service charging method further includes: and when the upgrading task is judged to be executable, prompting the cloud platform or the application end that the upgrading task is successfully created. That is, when the upgrade task is determined to be executable, the license in the account is deducted according to the license consumption required by the task, and the cloud platform or the application end is prompted to: the upgrade task is successfully created.
Optionally, the OTA upgrade service charging method further includes: and determining whether the upgrading task can be executed or not according to the consumption number of the licenses and/or the residual number of the licenses corresponding to the target account. The determining whether the upgrade task is executable may include: and comparing the residual quantity of the licenses in the account initiating the upgrading task with the license consumption quantity required by the task to judge whether the upgrading task can be executed. Or, judging whether the license consumption number of the OTA upgrade task is zero, if so, judging that the OTA upgrade task can be executed no matter how much the residual number of the license in the target account is; if the value is not zero, comparing the residual quantity of the license in the account initiating the upgrading task with the consumption quantity of the license required by the task to judge whether the upgrading task can be executed or not.
The step of deducting the license consumption amount in response to the OTA upgrade task when it is determined that the upgrade task is executable, includes:
when the license consumption number is 0, it is determined that the upgrade task is executable, in response to the OTA upgrade task,
alternatively, the first and second electrodes may be,
and when the residual quantity of the licenses corresponding to the target account is larger than or equal to the license consumption quantity, determining that the upgrading task can be executed, and deducting the license consumption quantity from the license consumption quantity.
As a supplementary embodiment, when it is determined that the upgrade task is not executable, the OTA upgrade task is not responded, and a prompt indicating that the OTA upgrade task is failed to be created is fed back to the cloud platform or the application terminal.
Optionally, step 12 comprises: inquiring equipment according to the group ID of the equipment to be upgraded corresponding to the OTA upgrading task to generate an equipment list; and calculating the license consumption quantity required by the OTA upgrading task according to the equipment list. In this embodiment, the charging rule of the intelligent contract includes: and inquiring the equipment according to the group ID of the equipment needing to be upgraded, generating an equipment list, and calculating the consumption number of the license required to be consumed according to the equipment in the equipment list.
In order to avoid repeated fee deduction, the step of calculating the license consumption quantity required by the OTA upgrading task according to the device list comprises the following steps: filtering the devices bound with the licenses in the device list, and generating a device list needing to be upgraded for the OTA upgrade task; based on the equipment list, calculating the license consumption number required by the OTA upgrading task; wherein one device in the device list corresponds to an independent license. Thus, the devices bound with the licenses are filtered out from the device list, a device list required to be upgraded for the task is generated, and each device needs an independent license, so that the number of the licenses required to be consumed for the task is calculated.
Optionally, the OTA upgrade service charging method further includes: and binding the devices in the device list with the licenses one by one and recording the bound licenses of the devices. When the purchased license is bound to the device, all upgrade tasks within the full life cycle of the device (i.e., from the time the device acquires the license to the time the device is terminated) are not charged any more. Then, after the upgrade task is started, the licenses are bound with the upgrade equipment one by one, if the equipment fails to be upgraded in the upgrade process, the corresponding licenses are not returned, but the licenses are not deducted when the equipment which fails to be upgraded is upgraded again.
Optionally, the OTA upgrade service charging method further includes:
grouping identification codes of equipment accessed to a cloud platform or an application end to obtain an equipment group; wherein one device exists in only one device group, each device has an independent identification code, and each device group has an independent group ID. In this embodiment, grouping, by the cloud platform, the devices accessing the platform according to the identification codes of the devices includes: according to the identification code of each device, each device is classified into an independent product group, each product has an independent product ID, and then each product is classified into a corresponding device group, each group has an independent group ID, and the same device can only exist in one device group.
Optionally, step 12 further comprises: when the first condition is met, the license consumption quantity required by the OTA upgrading task is 0. Wherein the first condition comprises at least one of: the OTA upgrading task comprises the steps of establishing an account, initializing the number of licenses of the account, inquiring the residual quantity of the licenses in the account, inquiring node information in a block chain system, and reading a field value related to a transaction structure definition of an intelligent contract, wherein the licenses are bound to devices corresponding to the OTA task. Specifically, calculating the license consumption number of the OTA upgrade task comprises; when the upgrade task is one of the following, determining that the license consumption amount required to be consumed by the upgrade task is zero: when an account is created, the number of licenses of the account is initialized, the residual quantity of the licenses in the account is inquired, node information in the blockchain system is inquired, and a field value related to a transaction structure definition of an intelligent contract is read; when the devices in the upgrade task have all bound licenses.
Optionally, the OTA upgrade service charging method further includes: receiving a purchase request of a target account for OTA upgrade service licenses; wherein the purchase request includes: a license individual purchase request and/or a license package purchase request; and responding to the purchase request, and storing the number of the licenses purchased by the target account in the blockchain system. After the user creates an account, the user purchases OTA upgrade service licenses for the equipment according to actual upgrade needs, the stored value of the purchased licenses is stored in the user account of the block chain, and the number of the licenses can be inquired and confirmed through the block chain system. Or the account initiating the upgrade task may purchase an OTA upgrade service license for the upgrade device, and the account initiating the upgrade task purchases an OTA upgrade service license for the upgrade device including: a user purchases OTA upgrade service licenses for the equipment according to actual upgrade needs, the licenses can be purchased independently according to quantity and can also be purchased according to a preferential package, and one license can only be used by one equipment correspondingly. The purchased license is stored in a user account of the blockchain, the number of the licenses can be inquired and confirmed through the blockchain system, and after the purchased license is bound to the equipment, all upgrading tasks in the full life cycle of the equipment (namely the equipment is used after obtaining the license until the equipment is stopped) can not be charged additionally.
In an embodiment, the charging method for the OTA upgrade server in the embodiment of the present invention includes:
s1, grouping the equipment accessed to the platform by the cloud platform according to the identification code of the equipment accessed to the platform;
s2, the account initiating the upgrade task purchases OTA upgrade service license for the upgrade device;
s3, receiving an OTA upgrading task created by the cloud platform or the application terminal through the calling block link interface;
s4, calculating the license consumption number of the OTA upgrade task according to the charging rule of the intelligent contract in the block chain system;
s5, comparing the residual license amount in the account initiating the OTA upgrade task with the license consumption amount required by the OTA upgrade task to judge whether the upgrade task can be executed;
s6, when the OTA upgrade task is judged to be executable, deducting the license in the initiating account according to the license consumption required by the OTA task, and prompting the cloud platform or the application terminal: the OTA upgrading task is successfully established;
and S7, after the OTA upgrade task is successfully created, recording the charging information of the OTA upgrade task on the blockchain, wherein the charging information at least comprises an upgrade task number, an upgrade task initiating account number, license consumption, license residual quantity, license deduction time and the like.
The embodiment of the invention adopts the block chain system to calculate the charging of the OTA upgrading task, ensures the charging accuracy by a transparent and clear charging principle, is convenient for batch upgrading management and unified charging of the equipment, records the charging information in the block chain system and ensures the safety and reliability of the upgrading service charging.
The above embodiments are respectively described with respect to the OTA upgrade service charging method of the present invention, and the following embodiments will further describe corresponding devices with reference to the accompanying drawings.
Specifically, as shown in fig. 2, the OTA upgrade service charging device according to the embodiment of the present invention is applied to a charging server, where the charging server is a node of a blockchain system, and the device includes:
the task receiving module 210 is configured to receive an OTA upgrade task created by a target account of a cloud platform or an application terminal through a calling block link interface;
the license calculation module 220 is used for calculating the license consumption quantity required by the OTA upgrading task according to the intelligent contract charging rule of the block chain system;
a license deduction module 230 for deducting the license consumption amount in response to the OTA upgrade task, when it is determined that the upgrade task is executable, and,
and the task recording module 240 is configured to store charging information of the OTA upgrade task in the blockchain system.
Optionally, the charging information comprises at least one of: account information of the target account, a task number of the OTA upgrading task, license consumption quantity, license residual quantity, license deduction time and license residual quantity updated after deduction of the license consumption quantity.
Optionally, the OTA upgrade service charging apparatus further includes:
the judging module is used for determining whether the upgrading task can be executed or not according to the consumption quantity of the licenses and/or the residual quantity of the licenses corresponding to the target account;
optionally, the license deduction module 230 is specifically configured to:
when the license consumption number is 0, it is determined that the upgrade task is executable, in response to the OTA upgrade task,
alternatively, the first and second electrodes may be,
and when the residual quantity of the licenses corresponding to the target account is larger than or equal to the license consumption quantity, determining that the upgrading task can be executed, and deducting the license consumption quantity from the license consumption quantity.
Optionally, the license calculation module 220 is configured to:
inquiring equipment according to the group ID of the equipment to be upgraded corresponding to the OTA upgrading task to generate an equipment list;
and calculating the license consumption quantity required by the OTA upgrading task according to the equipment list.
Optionally, the license calculation module 220 is configured to:
filtering the devices bound with the licenses in the device list, and generating a device list needing to be upgraded for the OTA upgrade task;
based on the equipment list, calculating the license consumption number required by the OTA upgrading task; wherein one device in the device list corresponds to an independent license.
Optionally, the OTA upgrade service charging apparatus further includes:
and the license binding recording module is used for binding the equipment in the equipment list and the license one by one and recording the bound license of the equipment.
Optionally, the OTA upgrade service charging apparatus further includes:
the grouping module is used for grouping the identification codes of the devices accessed to the cloud platform or the application end to obtain a device group; wherein one device exists in only one device group, each device has an independent identification code, and each device group has an independent group ID.
Optionally, the license calculation module 220 is further configured to:
when the first condition is met, the license consumption quantity required by the OTA upgrading task is 0;
wherein the first condition comprises at least one of:
OTA upgrade tasks are to create an account, initialize the number of licenses of the account, query the remaining number of licenses in the account, query node information in a blockchain system, read a transaction structure definition related field value of an intelligent contract,
and the devices corresponding to the OTA task are bound with the license.
Optionally, the OTA upgrade service charging apparatus further includes:
the purchase processing module is used for receiving a purchase request of a target account for OTA upgrade service licenses; wherein the purchase request includes: a license individual purchase request and/or a license package purchase request;
and the license purchase recording module is used for responding to the purchase request and storing the number of the licenses purchased by the target account into the blockchain system.
Optionally, the OTA upgrade service charging apparatus further includes:
and the prompting module is used for prompting the successful establishment of the upgrading task to the cloud platform or the application terminal when the upgrading task is judged to be executable.
The embodiment of the device of the invention is corresponding to the embodiment of the method, all the implementation means in the embodiment of the method are suitable for the embodiment of the device, and the same technical effect can be achieved. The charging server adopts the block chain system to calculate the charging of the OTA upgrading task, ensures the charging accuracy through a transparent and clear charging principle, is convenient for batch upgrading management and unified charging of the equipment, records the charging information in the block chain system, and ensures the safety and reliability of the upgrading service charging.
As shown in fig. 3, an embodiment of the present invention further provides a charging system for OTA upgrade service, including: the system comprises a block chain system formed by a charging server and a cloud platform or an application end communicated with the block chain system; wherein, the charging server includes: a processor, a memory coupled to the processor, and a transceiver coupled to the processor; the processor is used for calling and executing the program and the data stored in the memory, realizing the steps of the OTA upgrade service charging method and achieving the same technical effect.
In order to better achieve the above object, as shown in fig. 4, an embodiment of the present invention further provides an OTA upgrade service charging server, where the charging server includes: a processor 400; a memory 420 connected to the processor 400 through a bus interface, and a transceiver 410 connected to the processor 400 through a bus interface; the memory 420 is used for storing programs and data used by the processor in performing operations; transmitting data information or pilot frequency through the transceiver 410, and receiving an uplink control channel through the transceiver 410; when the processor 400 calls and executes the programs and data stored in the memory 420, the following functions are implemented:
the transceiver 410 is configured to receive and transmit data under the control of the processor 400, and specifically, performs the following processes: receiving an OTA upgrading task created by a target account of the cloud platform or the application terminal through a calling block link interface.
The processor 400 is used for reading the program in the memory 420 and executing the following processes: calculating the license consumption quantity required by the OTA upgrading task according to the intelligent contract charging rule of the block chain system; and when the upgrading task is judged to be executable, deducting the license consumption amount in response to the OTA upgrading task, and storing the charging information of the OTA upgrading task in the blockchain system.
Where in fig. 4, the bus architecture may include any number of interconnected buses and bridges, with various circuits of one or more processors, represented by processor 400, and memory, represented by memory 420, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 410 may be a number of elements, including a transmitter and a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 400 is responsible for managing the bus architecture and general processing, and the memory 420 may store data used by the processor 400 in performing operations.
Those skilled in the art will appreciate that all or part of the steps for implementing the above embodiments may be performed by hardware, or may be instructed to be performed by associated hardware by a computer program that includes instructions for performing some or all of the steps of the above methods; and the computer program may be stored in a readable storage medium, which may be any form of storage medium.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the OTA upgrade service charging method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Furthermore, it is to be noted that in the device and method of the invention, it is obvious that the individual components or steps can be decomposed and/or recombined. These decompositions and/or recombinations are to be regarded as equivalents of the present invention. Also, the steps of performing the series of processes described above may naturally be performed chronologically in the order described, but need not necessarily be performed chronologically, and some steps may be performed in parallel or independently of each other. It will be understood by those skilled in the art that all or any of the steps or elements of the method and apparatus of the present invention may be implemented in any computing device (including processors, storage media, etc.) or network of computing devices, in hardware, firmware, software, or any combination thereof, which can be implemented by those skilled in the art using their basic programming skills after reading the description of the present invention.
Thus, the objects of the invention may also be achieved by running a program or a set of programs on any computing device. The computing device may be a general purpose device as is well known. The object of the invention is thus also achieved solely by providing a program product comprising program code for implementing the method or the apparatus. That is, such a program product also constitutes the present invention, and a storage medium storing such a program product also constitutes the present invention. It is to be understood that the storage medium may be any known storage medium or any storage medium developed in the future. It is further noted that in the apparatus and method of the present invention, it is apparent that each component or step can be decomposed and/or recombined. These decompositions and/or recombinations are to be regarded as equivalents of the present invention. Also, the steps of executing the series of processes described above may naturally be executed chronologically in the order described, but need not necessarily be executed chronologically. Some steps may be performed in parallel or independently of each other.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. An upgrade service charging method is applied to a charging server, wherein the charging server is a node in a blockchain system, and the method comprises the following steps:
receiving an over-the-air OTA upgrading task created by a target account of a cloud platform or an application end through a calling block link interface;
calculating the license consumption quantity required by the OTA upgrading task according to the intelligent contract charging rule of the block chain system;
and when the upgrading task is judged to be executable, deducting the license consumption amount in response to the OTA upgrading task, and storing the charging information of the OTA upgrading task in the blockchain system.
2. The upgrade service charging method according to claim 1, wherein the charging information includes at least one of: the account information of the target account, the task number of the OTA upgrading task, the license consumption quantity, the license residual quantity, the license deduction time and the license residual quantity updated after deducting the license consumption quantity.
3. The upgrade service charging method according to claim 1, further comprising:
determining whether the upgrading task can be executed or not according to the consumption number of the licenses and/or the residual number of the licenses corresponding to the target account;
the step of deducting the license consumption amount in response to the OTA upgrade task when it is determined that the upgrade task is executable, comprises:
determining that the upgrade task is executable when the license consumption number is 0, responding to the OTA upgrade task,
alternatively, the first and second electrodes may be,
and when the residual number of the licenses corresponding to the target account is larger than or equal to the license consumption number, determining that the upgrading task can be executed, and deducting the license consumption number from the license consumption number.
4. The upgrade service charging method according to claim 1, wherein the step of calculating the license consumption amount required for the OTA upgrade task according to the intelligent contract charging rule of the blockchain system comprises:
inquiring equipment according to the group ID of the equipment to be upgraded corresponding to the OTA upgrading task to generate an equipment list;
and calculating the license consumption quantity required by the OTA upgrading task according to the equipment list.
5. The upgrade service billing method of claim 4 wherein the step of calculating the number of license consumptions required for the OTA upgrade task based on the device list comprises:
filtering the devices with bound licenses in the device list, and generating a device list to be upgraded for the OTA upgrade task;
calculating the license consumption quantity required by the OTA upgrading task based on the equipment list; wherein one device in the device list corresponds to an independent license.
6. The upgrade service charging method according to claim 5, further comprising:
and binding the equipment in the equipment list with the license one by one and recording the bound license of the equipment.
7. The upgrade service charging method according to claim 4, further comprising:
grouping identification codes of the devices accessing the cloud platform or the application end to obtain a device group; wherein one device exists in only one device group, each device has an independent identification code, and each device group has an independent group ID.
8. The upgrade service charging method according to claim 1, wherein the step of calculating the license consumption amount required for the OTA upgrade task according to the intelligent contract charging rule of the blockchain system comprises:
when a first condition is met, the license consumption quantity required by the OTA upgrading task is 0;
wherein the first condition comprises at least one of:
the OTA upgrading task comprises the steps of creating an account, initializing the license quantity of the account, inquiring the residual quantity of the license in the account, inquiring node information in the blockchain system, reading a related field value defined by a transaction structure body of an intelligent contract,
and the devices corresponding to the OTA task are bound with licenses.
9. The upgrade service charging method according to claim 1, further comprising:
receiving a purchase request of the target account for OTA upgrade service licenses; wherein the purchase request comprises: a license individual purchase request and/or a license package purchase request;
and responding to the purchase request, and storing the number of the licenses purchased by the target account in the blockchain system.
10. The upgrade service charging method according to claim 1, further comprising:
and when the upgrading task is judged to be executable, prompting the cloud platform or the application end that the upgrading task is successfully created.
11. An upgrade service charging apparatus applied to a charging server, the charging server being a node of a blockchain system, the apparatus comprising:
the task receiving module is used for receiving an OTA (over the air) upgrading task created by a target account of the cloud platform or the application terminal through a calling block link interface;
the license calculation module is used for calculating the license consumption quantity required by the OTA upgrading task according to the intelligent contract charging rule of the block chain system;
a license deduction module for deducting the license consumption amount in response to the OTA upgrade task when it is determined that the upgrade task is executable, and,
and the task recording module is used for storing the charging information of the OTA upgrading task in the block chain system.
12. An upgrade service billing system, comprising: the system comprises a block chain system formed by a charging server and a cloud platform or an application end communicated with the block chain system; wherein, the charging server includes: a processor, a memory coupled to the processor, and a transceiver coupled to the processor; wherein the processor is configured to invoke and execute the programs and data stored in the memory to implement the steps of the upgrade service billing method according to any of claims 1 to 10.
CN202010547363.2A 2020-06-16 2020-06-16 Upgrade service charging method, device and system Active CN113810869B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010547363.2A CN113810869B (en) 2020-06-16 2020-06-16 Upgrade service charging method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010547363.2A CN113810869B (en) 2020-06-16 2020-06-16 Upgrade service charging method, device and system

Publications (2)

Publication Number Publication Date
CN113810869A true CN113810869A (en) 2021-12-17
CN113810869B CN113810869B (en) 2022-11-29

Family

ID=78892525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010547363.2A Active CN113810869B (en) 2020-06-16 2020-06-16 Upgrade service charging method, device and system

Country Status (1)

Country Link
CN (1) CN113810869B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180096752A1 (en) * 2014-08-06 2018-04-05 Mido Play Inc. Systems for multiple legal game providers with digital ledger
US20180287893A1 (en) * 2017-03-29 2018-10-04 Cisco Technology, Inc. Consumption-based licensing of network features based on blockchain transactions
CN109064167A (en) * 2018-07-27 2018-12-21 烨链(上海)科技有限公司 Data processing method and device based on block chain
CN109784883A (en) * 2018-12-20 2019-05-21 众安信息技术服务有限公司 A kind of charging method, block catenary system and storage medium based on the logical card of block chain
CN109814905A (en) * 2019-01-17 2019-05-28 上海边界智能科技有限公司 A kind of method for upgrading software and device based on block chain
CN110390571A (en) * 2018-04-18 2019-10-29 触信(厦门)智能科技有限公司 The logical card management system of panorama block chain and method
EP3582439A1 (en) * 2018-06-11 2019-12-18 Paradox Engineering Sa Method for providing an over the air (ota) update to devices of an internet of things (iot) platform
CN110990486A (en) * 2019-11-29 2020-04-10 北京有名知行科技有限公司 Block link evidence issuing and storing method and device based on network data interaction
CN111182527A (en) * 2019-12-27 2020-05-19 深圳市云伽智能技术有限公司 OTA firmware upgrading method, device, terminal equipment and storage medium thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180096752A1 (en) * 2014-08-06 2018-04-05 Mido Play Inc. Systems for multiple legal game providers with digital ledger
US20180287893A1 (en) * 2017-03-29 2018-10-04 Cisco Technology, Inc. Consumption-based licensing of network features based on blockchain transactions
CN110390571A (en) * 2018-04-18 2019-10-29 触信(厦门)智能科技有限公司 The logical card management system of panorama block chain and method
EP3582439A1 (en) * 2018-06-11 2019-12-18 Paradox Engineering Sa Method for providing an over the air (ota) update to devices of an internet of things (iot) platform
CN109064167A (en) * 2018-07-27 2018-12-21 烨链(上海)科技有限公司 Data processing method and device based on block chain
CN109784883A (en) * 2018-12-20 2019-05-21 众安信息技术服务有限公司 A kind of charging method, block catenary system and storage medium based on the logical card of block chain
CN109814905A (en) * 2019-01-17 2019-05-28 上海边界智能科技有限公司 A kind of method for upgrading software and device based on block chain
CN110990486A (en) * 2019-11-29 2020-04-10 北京有名知行科技有限公司 Block link evidence issuing and storing method and device based on network data interaction
CN111182527A (en) * 2019-12-27 2020-05-19 深圳市云伽智能技术有限公司 OTA firmware upgrading method, device, terminal equipment and storage medium thereof

Also Published As

Publication number Publication date
CN113810869B (en) 2022-11-29

Similar Documents

Publication Publication Date Title
JP6946435B2 (en) Methods and systems that provide confirmed, auditable, and immutable inputs to smart contracts
CN109636504B (en) Information processing method and device, electronic device and storage medium
CN108446974B (en) Data processing apparatus, method and computer-readable storage medium
CN111144982B (en) Order state transition method and device, electronic equipment and storage medium
CN107977457B (en) Data clearing method, system and computer readable storage medium
CN110597888B (en) Virtual resource acquisition method and device based on block chain, medium and equipment
US10656939B2 (en) Modeling lifetime of hybrid software application using application manifest
CN112232961B (en) Data processing method and device based on block chain system and electronic equipment
CN104067276A (en) Client-side minimal download and simulated page navigation features
CN109753300B (en) Algorithm upgrading method, calculation task sending method and related device
CN109408067A (en) A kind of data managing method and server based on monomer applications
CN110597919A (en) Data management method, device and equipment based on block chain and storage medium
CN107861765B (en) Product configuration method, apparatus, and computer-readable storage medium
EP3609153B1 (en) Maintenance equipment management method, server and computer-readable storage medium
CN113810869B (en) Upgrade service charging method, device and system
CN111325586B (en) Bill generation method, device, server and medium based on block chain network
CN111522635B (en) Computing task processing method, computing task processing device, server and storage medium
CN114663177A (en) State change control method, device, electronic equipment and storage medium
CN103546324B (en) Method and system for intelligent component library management
CN110618937A (en) Software evaluation method, device and equipment
CN112124131A (en) Unified access management method and system for charging piles based on multiple communication protocols
US20230350747A1 (en) Cross-System Configuration Checks
CN110008073B (en) Hardware platform differential shielding method, device, equipment and readable storage medium
CN112910950B (en) Uplink method and device for data to be uplink and block link point equipment
CN117710068B (en) Temporary supplier verification method, device and equipment based on artificial intelligence

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant