Data writing method, device, equipment, medium and program product for a phone card
By obtaining the computing power ratio of the target card writing device at multiple nodes and determining the card writing strategy, the problem of inefficiency during the phone card opening process is solved, and the effect of improving account opening efficiency is achieved.
Patent Information
- Application Number
- CN202210289716.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-23
- Publication Date
- 2025-05-30
- Estimated Expiration
- 2042-03-23
AI Technical Summary
During the process of opening a telephone card account, the efficiency is low when the business is busy, resulting in inefficient account opening.
By receiving the check-in request of the target card writing device, the computing power ratio of each node in the N nodes is obtained. Based on this, the target card writing strategy of the target card writing device is determined and the policy is sent to it, so that it can dynamically adjust the terminal processing time delay and write data in batches.
It effectively reduces the interface usage rate for obtaining phone card configuration files and improves the account opening efficiency of phone card.
Smart Images

Figure CN114661467B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of phone card writing, and particularly relates to a method, device, equipment, medium and program product for writing data of a phone card. Background Art
[0002] At present, new network customers of operators mainly adopt the Online And Offline (OAO) mode to open an account for a Subscriber Identity Module (SIM) card. Among them, the online and offline combined mode refers to an account opening mode that uses online ordering, offline distribution supplemented by on-site activation, real-name system, and card writing. During peak business hours, such as from 10 am to 7 pm, the business volume is large, resulting in low efficiency in opening accounts for SIM cards. It can be seen that there is a problem of low efficiency in the current process of opening accounts for SIM cards. Summary of the Invention
[0003] Embodiments of this application provide a method, device, equipment, medium and program product for writing data of a phone card, which can solve the problem of low efficiency in the process of opening an account for a phone card.
[0004] In a first aspect, an embodiment of this application provides a method for writing data of a phone card, which is applied to an electronic device and includes:
[0005] Receiving a check-in request from a target card writing device;
[0006] In response to the check-in request, obtaining the computing power ratio of the target card writing device at each of N nodes, where each of the N nodes is used to represent the set of all card writing devices in the same area, and the computing power ratio is used to represent the response time of the target card writing device;
[0007] Based on the computing power ratio of the target card writing device at each of the N nodes, determining a target card writing strategy for the target card writing device;
[0008] Sending the target card writing strategy to the target card writing device, so that the target card writing device writes card writing data into the phone card based on the target card writing strategy.
[0009] In a second aspect, an embodiment of this application provides a device for writing data of a phone card, which is applied to an electronic device and includes:
[0010] A receiving module, configured to receive a check-in request from a target card writing device;
[0011] An obtaining module, configured to obtain the computing power ratio of the target card writing device at each of N nodes in response to the check-in request, where each of the N nodes is used to represent the set of all card writing devices in the same area, and the computing power ratio is used to represent the response time of the target card writing device;
[0012] A determination module, configured to determine a target card writing policy of a target card writing device based on the computing power ratios of each node of the target card writing device among N nodes;
[0013] A sending module, configured to send the target card writing policy to the target card writing device, so that the target card writing device writes card writing data into the phone card based on the target card writing policy.
[0014] In a third aspect, an embodiment of the present application provides an electronic device, which is characterized in that the electronic device includes: a processor and a memory storing computer program instructions;
[0015] When the processor executes the computer program instructions, the data writing method of the phone card as described in the first aspect is implemented.
[0016] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the data writing method of the phone card as described in the first aspect is implemented.
[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, which is characterized in that when the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the data writing method of the phone card as described in the first aspect.
[0018] For the data writing method, device, equipment, medium and program product of the phone card in the embodiment of the present application, the target card writing policy of the target card writing device is determined according to the computing power ratios of each node of the target card writing device among N nodes, so that the target card writing device can dynamically adjust the terminal processing time delay for the phone card according to the target card writing policy, can write the data of the phone card in batches, effectively reduces the usage rate of the interface for obtaining the phone card configuration file, and improves the account opening efficiency of the phone card. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required to be used in the embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.
[0020] Figure 1 It is a schematic flowchart of an embodiment of the data writing method of the phone card provided by the present application;
[0021] Figure 2 It is an interaction schematic diagram between the electronic device and the target card writing device in the embodiment of the data writing method of the phone card provided by the present application;
[0022] Figure 3 It is a schematic structural diagram of an embodiment of a data writing device for a phone card provided by this application;
[0023] Figure 4 It is a schematic structural diagram of an embodiment of an electronic device provided by this application. Specific Embodiments
[0024] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the following further describes this application in detail in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit this application. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is only to provide a better understanding of this application by showing examples of this application.
[0025] It should be noted that, in this document, relational terms such as first and second are only 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. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover a non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, elements defined by the statement "comprising..." do not exclude the presence of additional identical elements in the process, method, article or device comprising the said elements.
[0026] Through research by the inventor, it is found that the existing online-offline combined mode has a short contact time with the account-opening customers, so it is necessary to provide efficient services. However, due to the performance differences of the electronic devices relied on by customers for account opening currently, congestion occurs when the business is busy and the business concurrency is large. In the current phone card account-opening process, all business processing requests, such as order query, real-name authentication, account-opening data import, etc., are statically pushed to the electronic devices, resulting in situations such as the electronic devices crashing, deadlocking, and denial of service, and further leading to low efficiency in phone card account opening.
[0027] To solve the problems of the existing technology, the embodiments of this application provide a method, device, equipment, and computer storage medium for writing data of a phone card. The method and device for writing data of the phone card can both be applied to an electronic device, where the electronic device includes at least one server. First, the method for writing data of the phone card provided by the embodiments of this application will be introduced below.
[0028] Figure 1 It is a schematic flowchart of an embodiment of the method for writing data into a phone card provided by this application.
[0029] As Figure 1 shown, the method for writing data into a phone card provided by the embodiment of this application includes the following steps S101 to S104.
[0030] S101. Receive the check-in request of the target card writing device.
[0031] S102. In response to the check-in request, obtain the computing power ratio of the target card writing device at each of the N nodes, where each of the N nodes is used to represent the set of all card writing devices in the same area, and the computing power ratio is used to represent the response time of the target card writing device.
[0032] S103. Based on the computing power ratio of the target card writing device at each of the N nodes, determine the target card writing strategy of the target card writing device.
[0033] S104. Send the target card writing strategy to the target card writing device, so that the target card writing device writes card writing data into the phone card based on the target card writing strategy.
[0034] For the method for writing data into a phone card in the embodiment of this application, according to the computing power ratio of the target card writing device at each of the N nodes, determine the target card writing strategy of the target card writing device, so that the target card writing device can dynamically adjust the terminal processing time delay for the phone card according to the target card writing strategy, can write data into the phone card in batches, effectively reduce the usage rate of the interface for obtaining the phone card configuration file, and improve the account opening efficiency of the phone card.
[0035] The following introduces the specific implementation manners of the above steps.
[0036] In S101, when the target card writing device is powered on, the above electronic device can receive the check-in request of the target card writing device.
[0037] The above target card writing device can be a device for opening an account for a phone card to be opened. For example, it can be a card opening machine with a phone card slot, etc.
[0038] The above check-in request can be a request for the target card writing device to check in to the electronic device, and it can be composed of a specific string or identifier.
[0039] For example, as Figure 2As shown, when the above-mentioned target card writing device 210 is powered on, the above-mentioned target card writing device 210 sends a check-in request to the electronic device 230 through the service gateway 220. The electronic device 230 receives the check-in request through the service gateway 220.
[0040] Alternatively, in some embodiments, when the above-mentioned target card writing device is powered on, the above-mentioned target card writing device may directly send a check-in request to the above-mentioned electronic device.
[0041] It can be understood that each target card writing device can send a check-in request and a check-out request to the above-mentioned electronic device at any time, but there may be a peak-valley effect when sending a check-in request. The above-mentioned check-out request may be a request for the target card writing device to disconnect from the electronic device.
[0042] In S102, after the above-mentioned electronic device receives the check-in request, it may, in response to the check-in request, obtain the computing power ratio of the above-mentioned target card writing device at each of the N nodes.
[0043] The above-mentioned N nodes may be the number of sets of a preset number of card writing devices in the same area. N and the preset number can be set according to actual needs. For example, Xi'an includes 1000 card writing devices, and the above-mentioned preset number is 100, then Xi'an includes 10 nodes.
[0044] The above-mentioned card writing devices may include checked-in card writing devices and target card writing devices.
[0045] The above-mentioned computing power ratio may be the ratio of the sum of the predicted response times of the above-mentioned target card writing device at the target node and the predicted response times of the above-mentioned target card writing device at the above-mentioned N nodes.
[0046] The above-mentioned electronic device pre-stores the corresponding relationship between the computing power ratio of the target card writing device at each of the N nodes and the identification information of the target card writing device. The obtaining of the computing power ratio of the above-mentioned target card writing device at each of the N nodes may include:
[0047] Obtain the identification information of the above-mentioned target card writing device;
[0048] According to the identification information of the above-mentioned target card writing device, obtain the computing power ratio of the above-mentioned target card writing device at each of the N nodes.
[0049] The above-mentioned identification information of the target card writing device may be any information that can identify the target card writing device, such as the number information of the target card writing device, etc.
[0050] The obtaining of the identification information of the above-mentioned target card writing device may be that the above-mentioned check-in request includes the identification information of the target card writing device, and the above-mentioned electronic device may directly obtain the identification information of the target card writing device from the above-mentioned check-in request.
[0051] Alternatively, in some embodiments, each of the nodes includes at least one checked-in card writing device. The obtaining of the computing power ratios of the target card writing device in each of the N nodes may include:
[0052] Obtaining the card writing configuration parameters of the checked-in card writing devices in the N nodes, where the card writing configuration parameters include at least one of the hardware performance parameters, network condition parameters, and configuration parameters of the phone card of the checked-in card writing devices;
[0053] Based on the card writing configuration parameters of each of the checked-in card writing devices in the N nodes, obtaining the computing power ratios of the target card writing device in each of the N nodes.
[0054] It can be understood that by using the card writing configuration parameters of each of the checked-in card writing devices in the N nodes to obtain the computing power ratios of the target card writing device in each of the N nodes, the accuracy of the computing power ratios of the target card writing device in each of the N nodes can be improved.
[0055] The above-mentioned hardware performance parameters can be any parameters that can reflect the hardware performance of the checked-in card writing device. For example, the hardware performance parameters may include at least one of the operating capacity of the CPU (Central Processing Unit), memory capacity, and CPU operating speed. The hardware performance parameters of the above-mentioned checked-in card writing devices may vary greatly or be the same.
[0056] The above-mentioned network condition parameters can be any parameters that can reflect the network condition of the checked-in card writing device. For example, at least one of the Internet Protocol Packet Transfer Delay (IPTD), Internet Protocol Packet Error Rate (IPER), and Internet Protocol Packet Loss Rate (IPLR). The network condition parameters of each of the above-mentioned checked-in card writing devices are different. The network condition can be at least one of 4G network, 5G network, and Wireless Fidelity (WIFI) network.
[0057] The above-mentioned configuration parameters of the phone card can be any parameters that can reflect the configuration of the phone card. For example, at least one of the card number parameter of the phone card and the Group Identifier level 1 parameter.
[0058] The corresponding relationship between each card writing configuration parameter and the computing power value is pre-stored in the above-mentioned electronic device.
[0059] The number of checked-in card writing devices included in each of the above nodes increases or decreases over time, and the number of checked-in card writing devices included in each of the above nodes may be different or the same.
[0060] The above-mentioned obtaining of the card writing configuration parameters of the checked-in card writing devices in the N nodes may be that the above-mentioned check-in request includes the card writing configuration parameters, and the electronic device can directly obtain the card writing configuration parameters from the above-mentioned check-in request; it may also be that when the electronic device receives the above-mentioned check-in request, it sends a parameter acquisition instruction to the target card writing device. When the target card writing device receives the parameter acquisition instruction, it sends the card writing configuration parameters to the target card writing device.
[0061] The above-mentioned obtaining of the computing power ratio of the target card writing device in each of the N nodes based on the card writing configuration parameters of each of the checked-in card writing devices in the N nodes may be to obtain a corresponding plurality of computing power values based on the card writing configuration parameters of each of the checked-in card writing devices in the N nodes; divide the sum of the plurality of computing power values by the sum of the card writing configuration parameters of each of the checked-in card writing devices in the N nodes to obtain the computing power ratio of the target card writing device in each of the N nodes.
[0062] Alternatively, in some embodiments, the above-mentioned obtaining of the computing power ratio of the target card writing device in each of the N nodes based on the card writing configuration parameters of each of the checked-in card writing devices in the N nodes may include
[0063] Determining the response time of each of the checked-in card writing devices based on the card writing configuration parameters of each of the checked-in card writing devices in the N nodes;
[0064] Determining the predicted response time of the target card writing device under each of the nodes based on the response time associated with each of the nodes;
[0065] Determining the computing power ratio of the target card writing device in each of the N nodes based on the predicted response time.
[0066] It can be understood that by determining the predicted response time of the above-mentioned target card writing device under each node through the response time associated with each node, the accuracy of the above-mentioned predicted response time is improved; by determining the computing power ratio of the above-mentioned target card writing device in each of the N nodes through the above-mentioned predicted response time, the accuracy of the above-mentioned computing power ratio is improved.
[0067] The above-mentioned determining the response time of each of the checked-in card writing devices based on the card writing configuration parameters of each of the checked-in card writing devices in the N nodes may be to multiply the sum of the card writing configuration parameters of the checked-in card writing devices by a preset parameter coefficient to obtain the response time of the checked-in card writing devices.
[0068] The above preset parameter coefficients can be set according to the actual situation and are not limited herein.
[0069] Alternatively, in some embodiments, the above card writing configuration parameters include hardware performance parameters, network condition parameters, and configuration parameters of the phone card. Based on the card writing configuration parameters of each of the checked-in card writing devices among the N nodes, determining the response time of each of the checked-in card writing devices may include:
[0070] Obtain the parameter weights of each parameter among the hardware performance parameters, the network condition parameters, and the configuration parameters of the phone card;
[0071] Based on the hardware performance parameters, the network condition parameters, the configuration parameters of the phone card, and the parameter weights of each parameter, determine the response time of the checked-in card writing device.
[0072] It can be understood that by using the above hardware performance parameters, the above network condition parameters, the above configuration parameters of the phone card, and the parameter weights of each parameter to determine the response time of the above checked-in card writing device, the accuracy of the response time of the above checked-in card writing device can be improved.
[0073] Specifically, the value obtained by adding the product of the above hardware performance parameters multiplied by the parameter weight of the hardware performance parameters, the product of the above network condition parameters multiplied by the parameter weight of the hardware performance parameters, and the product of the above configuration parameters of the phone card multiplied by the parameter weight of the phone card configuration parameters is determined as the response time of the checked-in card writing device.
[0074] It should be noted that if the card writing configuration parameters only include one card writing configuration parameter, such as the hardware performance parameter, then the card writing configuration parameter is determined as the response time of the checked-in card writing device. If the card writing configuration parameters include at least two card writing configuration parameters, then the value obtained by adding the products of each card writing configuration parameter multiplied by the corresponding parameter weight is determined as the response time of the checked-in card writing device.
[0075] The parameter weights of the above parameters can be set according to actual requirements and are not limited herein. For example, the parameter weight of the hardware performance parameter is 0.3, the parameter weight of the network condition parameter is 0.5, and the parameter weight of the configuration parameter of the phone card is 0.2.
[0076] The above determining the predicted response time of the target card writing device under each of the nodes based on the response time associated with each of the nodes may be to calculate the average value of the response times associated with each of the nodes and determine the average value as the predicted response time of the target card writing device under each of the nodes.
[0077] Alternatively, in some embodiments, the above determining the predicted response time of the target card writing device under each of the nodes based on the response time associated with each of the nodes may include:
[0078] Obtain the time weights corresponding to the response times of each of the said check - in card - writing devices;
[0079] Based on the response times associated with each of the said nodes and the said time weights, determine the predicted response times of the target card - writing device under each of the said nodes.
[0080] It can be understood that determining the predicted response times of the target card - writing device under each node based on the response times associated with each node and the time weights can make the predicted response times of the target card - writing device under each node more accurate.
[0081] The time weights corresponding to the response times of the above - mentioned check - in card - writing devices can be set according to actual requirements and are not limited herein.
[0082] The above - mentioned determination of the predicted response times of the target card - writing device under each of the said nodes based on the response times associated with each of the said nodes and the said time weights can be to substitute the response times associated with each node and the corresponding time weights into the following formula (1) to calculate the predicted response times of the target card - writing device under each node.
[0083] T n,x =(t n,m-x+1 )+……+(X - 2)*t n,m-2 +(X - 1)*t n,m-1 +(X*t n,m ) / (1 + 2+3+…+X), Formula (1).
[0084] The above - mentioned T n,x represents the predicted response time of the target card - writing device at the nth node; the above - mentioned t n,m-x+1 represents the response time of the (m - x + 1)th check - in card - writing device at the nth node; the above - mentioned X represents the serial number of the target card - writing device.
[0085] It should be noted that the closer the response time and / or geographical location of the check - in card - writing device is to that of the target card - writing device, the greater the time weight corresponding to the response time of the check - in card - writing device, which can reduce the influence of single - pulse noise on the above - mentioned predicted response time and improve the accuracy of the above - mentioned predicted response time.
[0086] The above - mentioned determination of the computing power ratios of the target card - writing device at each of the N nodes based on the predicted response time can be that the electronic device pre - stores the corresponding relationship between the predicted response time and the computing power ratios of the target card - writing device at each of the N nodes, and obtains the computing power ratios of the target card - writing device at each of the N nodes corresponding to the predicted response time according to the predicted response time.
[0087] Alternatively, in some alternative embodiments, determining the computing power ratios of the target card writing device at each of the N nodes based on the predicted response time may include:
[0088] Determining the computing power ratios of the target card writing device at each of the N nodes by taking the ratio of the predicted response time under the target node to the sum of the predicted response times under each of the nodes, where the target node is the node including the target card writing device.
[0089] It can be understood that determining the computing power ratios of the target card writing device at each of the N nodes by taking the ratio of the predicted response time under the target node to the sum of the predicted response times under each of the nodes can improve the applicability of the above computing power ratios.
[0090] Specifically, substituting the predicted response time under the target node and the predicted response times under each of the nodes into the following formula (2) to calculate the computing power ratios of the target card writing device at each of the N nodes.
[0091] P n = T n,x / (T 1,x + T 2,x +…+ T n,x ), Formula (2).
[0092] The above P n represents the computing power ratios of the target card writing device at each of the N nodes, and the above T n,x represents the predicted response time of the target card writing device under the target node.
[0093] In S103, after the above electronic device obtains the computing power ratios of the target card writing device at each of the N nodes, based on the computing power ratios of the target card writing device at each of the N nodes, determine the target card writing strategy of the target card writing device.
[0094] It can be understood that determining the target card writing strategy of the target card writing device according to the computing power ratios of the target card writing device at each of the N nodes provides a basis for the subsequent data written by the target card writing device according to the target card writing strategy.
[0095] The above target card writing strategy can be any strategy that can improve the success rate of the card opening process of the above target card writing device, such as setting a timeout period, a phone card configuration file, etc.
[0096] The above S103 may include:
[0097] Based on the computing power ratios of the target card writing device at each of the N nodes, determine the type of the computing power ratios, where the type of the computing power ratios includes a first type and a second type;
[0098] Determine the target card writing strategy of the target card writing device according to the type of the computing power ratio.
[0099] In some embodiments, the above determining the target card writing strategy of the target card writing device according to the type of the computing power ratio may include:
[0100] If the type of the computing power ratio is the first type, determine that the target card writing strategy of the target card writing device is to set the timeout period to the first timeout period;
[0101] If the type of the computing power ratio is the second type, determine that the target card writing strategy of the target card writing device is to set the timeout period to the second timeout period, and the first timeout period is less than the second timeout period.
[0102] The larger the above computing power ratio, the longer the set timeout period.
[0103] In some embodiments, the above determining the type of the computing power ratio based on the computing power ratios of the target card writing device at each node among N nodes may include:
[0104] If it is determined that the type of the computing power ratio is the first type based on the fact that the computing power ratios of the target card writing device at each node among N nodes are within the first preset interval;
[0105] If the computing power ratio is within the second preset interval, determine that the type of the computing power ratio is the second type, and any value within the first preset interval is less than all values within the second preset interval.
[0106] It can be understood that in this embodiment, the number of types of the computing power ratio is taken as two for example, and the number of types of the computing power ratio can be set according to actual situations and is not limited herein.
[0107] In S104, after the above electronic device determines the target card writing strategy of the target card writing device based on the computing power ratios of the target card writing device at each node among N nodes, the above electronic device sends the target card writing strategy to the target card writing device so that the target card writing device writes the card writing data into the phone card based on the target card writing strategy.
[0108] It can be understood that the above target card writing device can dynamically adjust the terminal processing time delay for the phone card according to the target card writing strategy, can write the data into the phone card in batches, effectively reduce the usage rate of the interface for obtaining the phone card configuration file, and improve the account opening efficiency of the phone card.
[0109] The above electronic device sends different target card writing strategies to the target card writing device based on different target card writing devices and check-in requests.
[0110] When the above-mentioned target card writing device receives the target card writing policy, it writes card writing data into the phone card and performs real-name system operations.
[0111] Based on the same inventive concept as the phone card data writing method provided in the above embodiment, the embodiment of the present application also provides a phone card data writing device.
[0112] Figure 3 It is a schematic structural diagram of an embodiment of the phone card data writing device provided by the present application. As Figure 3 shown, the phone card data writing device 300 can be applied to an electronic device and may include:
[0113] A receiving module 301, configured to receive a check-in request from a target card writing device;
[0114] An obtaining module 302, configured to, in response to the check-in request, obtain the computing power ratio of the target card writing device at each of the N nodes, where each of the N nodes is used to represent the set of all card writing devices in the same area, and the computing power ratio is used to represent the response time of the target card writing device;
[0115] A determining module 303, configured to determine the target card writing policy of the target card writing device based on the computing power ratio of the target card writing device at each of the N nodes;
[0116] A sending module 304, configured to send the target card writing policy to the target card writing device, so that the target card writing device writes card writing data into the phone card based on the target card writing policy.
[0117] In some embodiments, each of the nodes includes at least one checked-in card writing device.
[0118] The obtaining module 302 may include:
[0119] A parameter obtaining sub-module, configured to obtain the card writing configuration parameters of the checked-in card writing devices in the N nodes, where the card writing configuration parameters include at least one of the hardware performance parameters, network condition parameters of the checked-in card writing devices, and the configuration parameters of the phone card;
[0120] A computing power ratio obtaining sub-module, configured to obtain the computing power ratio of the target card writing device at each of the N nodes based on the card writing configuration parameters of each of the checked-in card writing devices in the N nodes.
[0121] In some embodiments, the computing power ratio obtaining sub-module may include:
[0122] A response time determination unit, configured to determine the response time of each of the card writing devices that have been checked in based on the card writing configuration parameters of each of the N nodes;
[0123] A predicted response time determination unit, configured to determine the predicted response time of the target card writing device under each of the nodes based on the response times associated with each of the nodes;
[0124] A computing power ratio determination unit, configured to determine the computing power ratio of the target card writing device at each of the N nodes based on the predicted response time.
[0125] In some embodiments, the card writing configuration parameters include hardware performance parameters, network condition parameters, and configuration parameters of the phone card.
[0126] In some embodiments, the response time determination unit may include:
[0127] A parameter weight acquisition subunit, configured to acquire the parameter weights of the parameters in the hardware performance parameters, the network condition parameters, and the configuration parameters of the phone card;
[0128] A response time determination subunit, configured to determine the response time of the card writing device that has been checked in based on the hardware performance parameters, the network condition parameters, the configuration parameters of the phone card, and the parameter weights of the parameters.
[0129] In some embodiments, the predicted response time determination unit may include:
[0130] A time weight acquisition subunit, configured to acquire the time weights corresponding to the response times of the card writing devices that have been checked in;
[0131] A predicted response time determination subunit, configured to determine the predicted response time of the target card writing device under each of the nodes based on the response times associated with each of the nodes and the time weights.
[0132] In some embodiments, the computing power ratio determination unit may specifically be configured to:
[0133] Determine the computing power ratio of the target card writing device at each of the N nodes by taking the ratio of the predicted response time under the target node to the sum of the predicted response times under each of the nodes, where the target node is the node including the target card writing device.
[0134] Regarding the device in the above embodiments, the specific manners and beneficial effects of the operations performed by each module have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0135] Figure 4It is a schematic diagram of the hardware structure of an embodiment of the electronic device provided by this application.
[0136] As Figure 4 shown, the electronic device may include a processor 401 and a memory 402 storing computer program instructions.
[0137] Specifically, the above-mentioned processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0138] The memory 402 may include a mass memory for data or instructions. By way of example and not limitation, the memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disc, a magneto-optical disc, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In a suitable case, the memory 402 may include a removable or non-removable (or fixed) medium. In a suitable case, the memory 402 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 402 is a non-volatile solid state memory.
[0139] The memory may include a read only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical, or other physical / tangible memory storage device. Thus, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present disclosure.
[0140] The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement any one of the data writing methods of the phone card in the above embodiments.
[0141] In one example, the electronic device may further include a communication interface 403 and a bus 410. Among them, as Figure 4 shown, the processor 401, the memory 402, and the communication interface 403 are connected through the bus 410 and complete communication with each other.
[0142] The communication interface 403 is mainly used to implement communication between various modules, devices, units, and / or devices in the embodiments of this application.
[0143] The bus 410 includes hardware, software, or both, and couples the components of the online data flow metering device to each other. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 410 may include one or more buses. Although the embodiments of the present application describe and illustrate specific buses, the present application contemplates any suitable bus or interconnect.
[0144] The electronic device can execute the data writing method of the phone card in the embodiments of the present application, thereby implementing Figure 1 the data writing method of the phone card described.
[0145] In addition, in combination with the data writing method of the phone card in the above embodiments, the embodiments of the present application can be implemented by providing a computer storage medium. Computer program instructions are stored on the computer storage medium; when the computer program instructions are executed by a processor, any one of the data writing methods of the phone card in the above embodiments is implemented.
[0146] It should be clear that the present application is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and illustrated as examples. However, the method process of the present application is not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications, and additions, or change the order between steps after understanding the spirit of the present application.
[0147] The functional blocks shown in the above-described structural block diagrams can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (ASIC), appropriate firmware, a plug-in, a functional card, and so on. When implemented in software, the elements of the present application are programs or code segments for performing the required tasks. The program or code segment can be stored in a machine-readable medium or transmitted over a transmission medium or communication link via a data signal carried in a carrier wave. A "machine-readable medium" can include any medium that can store or transmit information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical discs, hard disks, fiber optic media, radio frequency (RF) links, and so on. The code segment can be downloaded via a computer network such as the Internet, an intranet, and so on.
[0148] It should also be noted that the exemplary embodiments mentioned in the present application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above steps, that is, the steps can be executed in the order mentioned in the embodiments, can be different from the order in the embodiments, or several steps can be executed simultaneously.
[0149] Aspects of the present disclosure have been described above with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each block in the flowcharts and / or block diagrams, and the combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the functions / actions specified in one or more blocks of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It should also be understood that each block in the block diagram and / or flowchart, and the combinations of blocks in the block diagram and / or flowchart, can also be implemented by dedicated hardware for performing the specified functions or actions, or by a combination of dedicated hardware and computer instructions.
[0150] As described above, this is only the specific implementation manner of the present application. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules, and units described above can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein. It should be understood that the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present application.
Claims
1. A method for writing data into a phone card, characterized in that, applied to an electronic device, includes: Receiving a check-in request from a target card-writing device; In response to the check-in request, obtaining the computing power ratio of each node in N nodes, where each node in the N nodes is used to represent the set of all card-writing devices in the same area, and the computing power ratio is used to represent the response time of the target card-writing device. The computing power ratio is determined by the ratio of the predicted response time of the target card-writing device at the target node to the sum of the predicted response times of the target card-writing device at the N nodes. The target node is the node including the target card-writing device; Based on the computing power ratio of each node in N nodes of the target card-writing device, determining the target card-writing strategy of the target card-writing device; Sending the target card-writing strategy to the target card-writing device, so that the target card-writing device writes card-writing data into the phone card based on the target card-writing strategy.
2. The method for writing data into a phone card according to claim 1, characterized in that, Each node includes at least one checked-in card-writing device. The obtaining the computing power ratio of each node in N nodes of the target card-writing device includes: Obtaining the card-writing configuration parameters of the checked-in card-writing devices in the N nodes, where the card-writing configuration parameters include at least one of the hardware performance parameters, network situation parameters, and phone card configuration parameters of the checked-in card-writing devices; Based on the card-writing configuration parameters of each of the checked-in card-writing devices in the N nodes, obtaining the computing power ratio of each node in N nodes of the target card-writing device.
3. The method for writing data into a phone card according to claim 2, characterized in that, The obtaining the computing power ratio of each node in N nodes of the target card-writing device based on the card-writing configuration parameters of each of the checked-in card-writing devices in the N nodes includes: Based on the card-writing configuration parameters of each of the checked-in card-writing devices in the N nodes, determining the response time of each of the checked-in card-writing devices; Based on the response time associated with each node, determining the predicted response time of the target card-writing device under each node; Based on the predicted response time, determining the computing power ratio of each node in N nodes of the target card-writing device.
4. The method for writing data into a phone card according to claim 3, characterized in that, The card-writing configuration parameters include hardware performance parameters, network situation parameters, and phone card configuration parameters; The determining the response time of each of the checked-in card-writing devices based on the card-writing configuration parameters of each of the checked-in card-writing devices in the N nodes includes: Obtaining the parameter weights of each parameter in the hardware performance parameters, network situation parameters, and phone card configuration parameters; Based on the hardware performance parameters, network situation parameters, phone card configuration parameters, and the parameter weights of each parameter, determining the response time of the checked-in card-writing device.
5. The method for writing data into a phone card according to claim 3, characterized in that, Determining the predicted response time of the target card writing device under each of the nodes based on the response time associated with each of the nodes includes: Obtaining the time weights corresponding to the response times of each of the checked-in card writing devices; Based on the response time associated with each of the nodes and the time weights, determining the predicted response time of the target card writing device under each of the nodes.
6. The method for writing data of a phone card according to claim 3, wherein, Determining the computing power ratio of the target card writing device at each of the N nodes based on the predicted response time includes: Determining the computing power ratio of the target card writing device at each of the N nodes by taking the ratio of the predicted response time under the target node to the sum of the predicted response times under each of the nodes.
7. A device for writing data of a phone card, wherein, Applied to an electronic device, the device includes: A receiving module, configured to receive a check-in request of the target card writing device; An obtaining module, configured to, in response to the check-in request, obtain the computing power ratio of the target card writing device at each of the N nodes, each of the N nodes being used to represent a set of all card writing devices within the same area, the computing power ratio being used to represent the response time of the target card writing device, and the computing power ratio being determined by taking the ratio of the predicted response time of the target card writing device at the target node to the sum of the predicted response times of the target card writing device at the N nodes, the target node being the node including the target card writing device; A determining module, configured to determine the target card writing strategy of the target card writing device based on the computing power ratio of the target card writing device at each of the N nodes; A sending module, configured to send the target card writing strategy to the target card writing device, so that the target card writing device writes card writing data into the phone card based on the target card writing strategy.
8. An electronic device, wherein, The electronic device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the method for writing data of a phone card according to any one of claims 1-6 is implemented.
9. A computer-readable storage medium, wherein, Computer program instructions are stored on the computer-readable storage medium, and when the computer program instructions are executed by a processor, the method for writing data of a phone card according to any one of claims 1-6 is implemented.
10. A computer program product, wherein, When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is caused to execute the method for writing data of a phone card according to any one of claims 1-6.
Citation Information
Patent Citations
Card writing method and device, server and storage medium
CN110460987A
Business processing method, system and device and medium
CN111385771A