Charging pile code scanning method and device, computer equipment and storage medium

By obtaining the QR code domain name of the charging pile and analyzing the target general analysis rules, the problem of time and low success rate of analyzing the charging pile connection identifier in the existing technology is solved, and a faster and more accurate code scanning process is achieved.

CN120012800APending Publication Date: 2025-05-16QIANSAN (BEIJING) TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411943769.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

The prior art takes a long time to analyze the charging pile connection identifier and is prone to parsing errors, resulting in a low success rate of user scanning codes.

Method used

By obtaining the QR code domain name of the charging pile, matching and obtaining the target general analysis rule, analyzing the rule to obtain the charging pile code information, and turning on the charging pile based on this information.

Benefits of technology

Simplify the process of obtaining and parsing analysis rules, significantly reduce time consumption and improve the success rate of users' scanning codes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120012800A_ABST
    Figure CN120012800A_ABST
Patent Text Reader

Abstract

The invention relates to a charging pile code scanning method and device, computer equipment and a storage medium. The method comprises the steps of obtaining a two-dimensional code domain name corresponding to a charging pile, obtaining a matched target general analysis rule according to the two-dimensional code domain name, analyzing the target general analysis rule to obtain charging pile coding information corresponding to the charging pile, and starting the charging pile according to the charging pile coding information. By adopting the method, the rule analysis time can be shortened, and the user code scanning success rate can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a charging pile code scanning method, device, computer equipment and storage medium. Background Art

[0002] For the charging aggregation platform, it is necessary to connect with dozens or even hundreds of charging service providers. If you want to start the supplier's charging equipment, you must parse out the charging pile connection logo of each supplier. The charging pile connection logo is hidden in the QR code affixed to the charging device. The parsing rules corresponding to each supplier are different. It is necessary to parse the parsing rules corresponding to each supplier, which is time-consuming and prone to parsing errors, reducing the user's scanning success rate. Summary of the invention

[0003] Based on this, it is necessary to provide a charging pile scanning method, device, computer equipment and storage medium that can reduce the time of parsing rules and improve the user's scanning success rate to address the above technical problems.

[0004] A charging pile code scanning method, the method comprising:

[0005] Get the QR code domain name corresponding to the charging pile;

[0006] Get the matching target general parsing rules based on the QR code domain name;

[0007] Parse the target general parsing rules to obtain the charging pile coding information corresponding to the charging pile;

[0008] Turn on the charging pile according to the charging pile coding information.

[0009] In one embodiment, it also includes:

[0010] Get the matching target general parsing rules based on the QR code domain name, including:

[0011] Extract key information from the QR code domain name to obtain the corresponding QR code key information;

[0012] Obtain a general parsing rule set, the general parsing rule set including at least one general parsing rule, each general parsing rule being associated with a corresponding rule weight number;

[0013] Traverse each general parsing rule in descending order of rule weights;

[0014] Determine whether each general parsing rule includes the key information of the QR code;

[0015] If yes, then the general parsing rule including the key information of the QR code is determined as the target general parsing rule;

[0016] If not, the general resolution rule including the QR code domain name is determined as the target general resolution rule.

[0017] In one embodiment, the target general parsing rule is parsed to obtain the charging pile coding information corresponding to the charging pile, including:

[0018] Parse the interception parameters and corresponding index parameters from the target general parsing rules;

[0019] Get the intercepted string corresponding to the intercepted parameter in the target general parsing rule;

[0020] Get the index value corresponding to the index parameter in the target general parsing rule;

[0021] The QR code domain name is intercepted according to the intercepted character string to obtain a first array element and a second array element;

[0022] The charging pile coding information corresponding to the charging pile is determined from the first array element and the second array element according to the index value.

[0023] In one embodiment, the QR code domain name is intercepted according to the intercepted character string to obtain the first array element and the second array element, including:

[0024] Segment the QR code domain name according to the intercepted string;

[0025] Determine the content before the intercepted character string in the QR code domain name as the first array element;

[0026] The content after the intercepted character string in the QR code domain name is determined as the second array element.

[0027] In one embodiment, the method further comprises:

[0028] If the charging pile coding information corresponding to the charging pile cannot be determined from the first array element and the second array element according to the index value, then the target array element is determined from the first array element and the second array element according to the index value;

[0029] Parse the next interception parameter and the corresponding next index parameter from the target general parsing rule;

[0030] Get the next interception string corresponding to the next interception parameter in the target general parsing rule;

[0031] Get the next index value corresponding to the next index parameter in the target general parsing rule;

[0032] The target array element is intercepted according to the next interception character string to obtain a first target array element and a second target array element;

[0033] The charging pile coding information corresponding to the charging pile is determined from the first target array element and the second target array element according to the next index value.

[0034] In one embodiment, the target general parsing rule is parsed to obtain the charging pile coding information corresponding to the charging pile, including:

[0035] Determine whether the target general parsing rule includes the target domain name information and the target characters;

[0036] If yes, split the QR code domain name according to the first character string to obtain multiple current array elements after splitting;

[0037] Determine a first current array element from the split multiple current array elements according to the first index value of the first character string;

[0038] Splitting the first current array element according to the second character string to obtain a plurality of first current sub-array elements after the splitting;

[0039] Determine a first coding element from the split multiple first current sub-array elements according to the second index value of the second character string;

[0040] Splitting the QR code domain name according to the third character string to obtain a plurality of second current array elements after the splitting;

[0041] Determine a second current sub-array element from the split multiple second current array elements according to a third index value corresponding to the third string;

[0042] Splitting the second current sub-array element according to the target character to obtain a plurality of split third current sub-array elements;

[0043] Determine a second encoding element from the plurality of third current sub-array elements after the splitting according to the target character index value corresponding to the target character;

[0044] The charging pile coding information corresponding to the charging pile is generated according to the first coding element, the second coding element and the target special symbol.

[0045] In one embodiment, before obtaining the QR code domain name corresponding to the charging pile, it includes:

[0046] Receive the QR code content and parsing principle corresponding to each charging pile;

[0047] Generate general parsing rules corresponding to charging piles based on QR code content and parsing principles;

[0048] Set the rule weight corresponding to each general parsing rule;

[0049] The general parsing rules are stored in descending order according to the rule weights to obtain a general parsing rule base.

[0050] A charging pile code scanning device, the device comprising:

[0051] An acquisition module is used to obtain the QR code domain name corresponding to the charging pile;

[0052] A matching module is used to obtain a matching target general parsing rule based on the QR code domain name;

[0053] A parsing module, used to parse the target general parsing rules to obtain the charging pile coding information corresponding to the charging pile;

[0054] The opening module is used to open the charging pile according to the coding information.

[0055] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following steps are implemented:

[0056] Get the QR code domain name corresponding to the charging pile;

[0057] Get the matching target general parsing rules based on the QR code domain name;

[0058] Parse the target general parsing rules to obtain the charging pile coding information corresponding to the charging pile;

[0059] Turn on the charging pile according to the charging pile coding information.

[0060] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0061] Get the QR code domain name corresponding to the charging pile;

[0062] Get the matching target general parsing rules based on the QR code domain name;

[0063] Parse the target general parsing rules to obtain the charging pile coding information corresponding to the charging pile;

[0064] Turn on the charging pile according to the charging pile coding information.

[0065] The above-mentioned charging pile code scanning method, device, computer equipment and storage medium obtain the QR code domain name corresponding to the charging pile, obtain the matching target general parsing rule according to the QR code domain name, parse the target general parsing rule, obtain the charging pile coding information corresponding to the charging pile, and activate the charging pile according to the charging pile coding information. Therefore, by pre-configuring the QR code of each charging pile under each service provider into the corresponding general parsing rule, when applying, obtain the target general parsing rule corresponding to the QR code domain name of the charging pile, parse it, obtain the charging pile coding information corresponding to the charging pile, and activate the charging pile through the charging pile coding information. The corresponding parsing rules are not different because of different service providers, but all charging pile QR code domain names under all service providers have corresponding general parsing rules, and the parsing of the general parsing rules is simple, the parsing time is fast, and the parsing error rate is low, thereby improving the user's scanning success rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] Figure 1 This is an application environment diagram of a charging pile code scanning method in an embodiment;

[0067] Figure 2 A schematic diagram of a charging pile code scanning method in one embodiment;

[0068] Figure 3 A schematic diagram of a process for obtaining target general parsing rules in one embodiment;

[0069] Figure 4 A schematic diagram of a process of parsing steps of a target general parsing rule in one embodiment;

[0070] Figure 5 A schematic diagram of a process of intercepting a QR code domain name in one embodiment;

[0071] Figure 6 A schematic diagram of a charging pile code scanning method in one embodiment;

[0072] Figure 7 A schematic diagram of a process of parsing steps of a target general parsing rule in one embodiment;

[0073] Figure 8 A schematic diagram of a charging pile code scanning method in one embodiment;

[0074] Fig. 9 This is a structural block diagram of a charging pile code scanning device in one embodiment;

[0075] Fig.10 is an internal structure diagram of a computer device in one embodiment;

[0076] Fig.11 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0077] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0078] The charging pile code scanning method provided in this application can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 through a network. The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0079] Specifically, the terminal 102 scans the charging pile, obtains the QR code domain name corresponding to the charging pile, and sends the QR code domain name to the server 104. The server 104 obtains the matching target general resolution rule according to the QR code domain name, parses the target general resolution rule, obtains the charging pile coding information corresponding to the charging pile, and turns on the charging pile according to the charging pile coding information.

[0080] In another embodiment, the terminal 102 scans the charging pile to obtain the QR code domain name corresponding to the charging pile, obtains the matching target general resolution rule according to the QR code domain name, parses the target general resolution rule, obtains the charging pile coding information corresponding to the charging pile, and turns on the charging pile according to the charging pile coding information.

[0081] In one embodiment, Figure 2 As shown, a charging pile code scanning method is provided, and the method is applied to Figure 1 The terminal or server in the example is used to illustrate, including the following steps:

[0082] Step 202, obtain the QR code domain name corresponding to the charging pile.

[0083] Among them, the charging pile is a device for charging electric vehicles. A QR code can be set on the charging pile. By scanning the QR code, the QR code domain name can be obtained. The QR code domain name here is composed of a string of names separated by dots. The QR code domain name has the characteristics of being unique and non-repeatable.

[0084] For example, the QR code domain name is:

[0085] https: / / www.test.com / mpage / index?pNum=6101001010100801

[0086] Step 204, obtaining a matching target general parsing rule according to the QR code domain name.

[0087] Among them, the target universal resolution rule is the universal resolution rule corresponding to the QR code domain name. The universal rule can be pre-configured. Different charging piles have different universal rules corresponding to them. Different charging piles of different service providers have different universal rules corresponding to them. The universal resolution rule corresponding to each charging pile can be generated according to the QR code content and resolution principle of each charging pile sent by each service provider.

[0088] Among them, the general parsing rules include but are not limited to key information, separators and parsing target characters. The key information here can be information related to the charging pile service provider. Specifically, after obtaining the QR code domain name corresponding to the charging pile, the key information can be extracted from the QR code domain name to obtain the key information, and the corresponding target general parsing rules are matched through the key information. If the corresponding target general parsing rules cannot be matched according to the key information, the QR code domain name is directly used to match, and the corresponding target general parsing rules are matched through the QR code domain name.

[0089] Among them, if no match is found, the QR code domain names are collected, and specific parsing rules can be configured for the failed QR code domain names, so that the next time the related QR code is started, it will be successful.

[0090] Step 206, parsing the target general parsing rule to obtain the charging pile coding information corresponding to the charging pile.

[0091] Step 208, turning on the charging pile according to the charging pile coding information.

[0092] Among them, the charging pile coding information here is the unique identification of the charging pile. Different charging corresponds to the charging pile coding information. After obtaining the charging pile coding information, the charging pile coding information is sent to the corresponding service provider. The service provider uses the charging pile coding information to open the corresponding charging pile to realize charging.

[0093] Specifically, after obtaining the target general parsing rule, the target general parsing rule is parsed to obtain the charging pile coding information corresponding to the charging pile. Specifically, the charging pile coding information corresponding to the charging pile is obtained from the QR code domain name according to the value corresponding to the interception parameter and the value corresponding to the index parameter in the target general parsing rule.

[0094] The interception parameter is the string required to intercept the key information in the QR code domain name, which can be at least one, for example, splitParam1. The index parameter is the index of the array element to be obtained after intercepting the string, which can be at least one, for example, index1, that is, the charging pile coding information corresponding to the charging pile can be determined from the intercepted array element through the value of the index parameter.

[0095] In the above charging pile code scanning method, the QR code domain name corresponding to the charging pile is obtained, and the matching target general parsing rule is obtained according to the QR code domain name, and the target general parsing rule is parsed to obtain the charging pile coding information corresponding to the charging pile, and the charging pile is turned on according to the charging pile coding information. Therefore, by pre-configuring the QR code of each charging pile under each service provider into the corresponding general parsing rule, when applying, the target general parsing rule corresponding to the QR code domain name of the charging pile is obtained, parsed, and the charging pile coding information corresponding to the charging pile is obtained, and the charging pile is turned on through the charging pile coding information. The corresponding parsing rules are not different because of different service providers, but all charging pile QR code domain names under all service providers have corresponding general parsing rules, and the parsing general parsing rules are simple, the parsing time is fast, and the parsing error rate is low, thereby improving the user's scanning success rate.

[0096] In one embodiment, Figure 3 As shown, the general parsing rules for obtaining matching targets based on the QR code domain name include:

[0097] Step 302: extract key information from the QR code domain name to obtain corresponding QR code key information.

[0098] Step 304: Obtain a general parsing rule set, where the general parsing rule set includes at least one general parsing rule, and each general parsing rule is associated with a corresponding rule weight.

[0099] Step 306: traverse the general parsing rules in descending order of rule weights.

[0100] Step 308, determining whether each general parsing rule includes the key information of the QR code.

[0101] Step 310: If yes, the general parsing rule including the key information of the QR code is determined as the target general parsing rule.

[0102] Step 312: If not, the general resolution rule including the QR code domain name is determined as the target general resolution rule.

[0103] Specifically, after obtaining the QR code domain name, key information is extracted from the QR code domain name to obtain the QR code key information. The QR code key information may be the name of the charging pile service provider, the charging pile logo, and the like.

[0104] Among them, the general analysis rule set, that is, the general analysis rule base, is used to store at least one general analysis rule. Each general analysis rule is set with a corresponding rule weight number and is stored from large to small according to the rule weight number. Each general analysis rule is a general analysis rule for each charging pile of each service provider.

[0105] Among them, since the general parsing rules are not stored in the key-value format, it is necessary to match each general parsing rule in the general parsing rule set one by one through the QR code key information. Specifically, after extracting the QR code key information corresponding to the QR code domain name, traverse each general parsing rule in the general parsing rule library, traverse the general parsing rule library from large to small according to the rule weight number, match each general parsing rule one by one through the QR code key information, determine whether each general parsing rule includes the QR code key information, and determine the general parsing rule containing the QR code key information as the target general parsing rule.

[0106] Furthermore, if each general parsing rule does not include the QR code key information, it is determined whether each general parsing rule includes the QR code domain name. If it does, the general parsing rule including the QR code domain name is determined as the target general parsing rule. In particular, to determine whether each general parsing rule includes the QR code domain name, each general parsing rule is matched one by one by the QR code domain name, and the rules are matched one by one from large to small according to the rule weight.

[0107] In one embodiment, Figure 4 As shown, the target general parsing rule is parsed to obtain the charging pile coding information corresponding to the charging pile, including:

[0108] Step 402: parse the target general parsing rule to obtain the interception parameter and the corresponding index parameter.

[0109] Step 404, obtaining the intercepted string corresponding to the intercepted parameter in the target general parsing rule.

[0110] Step 406, obtaining the index value corresponding to the index parameter in the target general parsing rule.

[0111] Step 408, intercept the QR code domain name according to the intercepted character string to obtain a first array element and a second array element.

[0112] Step 410: Determine the charging pile coding information corresponding to the charging pile from the first array element and the second array element according to the index value.

[0113] The interception parameter here is the string required in the target general parsing rule to intercept the key information in the QR code domain name, which can be at least one, for example, splitParam1. The index parameter is the index of the array element to be obtained after the string is intercepted, which can be at least one, for example, index1. In the target general parsing rule, the interception parameter and the index parameter have corresponding values, namely, the interception string and the index value, that is, the interception parameter and the interception string, the index parameter and the index value are similar to key-value, the interception parameter and the index parameter are key, and the interception string and the index value are value.

[0114] Specifically, the target general parsing rule is parsed to obtain the interception parameter and the index parameter, and the interception string corresponding to the interception parameter and the index value corresponding to the index parameter in the target general parsing rule are obtained. For example, the target general parsing rule is: ruleType1^service provider name^test.com? pNum^{'splitParam1':['pNum='],'index1':['[1]']}^900

[0115] Among them, the interception parameter is splitParam1, the corresponding interception string is: pNum=, the index parameter is index1', and the corresponding index value is: 1.

[0116] Furthermore, after determining the intercepted string, the QR code domain name is intercepted by intercepting the string, and the QR code domain name is divided into two parts, one part is the first array element, and the other part is the second array element, and then the charging pile coding information corresponding to the charging pile is located from the first array element and the second array element by the index value. For example, the QR code domain name is divided into two parts, the index value corresponding to the first part can be 0, and the index value corresponding to the second part can be 1.

[0117] For example, the target general parsing rule is: ruleType1^service provider name^test.com?pNum^{'splitParam1':['pNum='],'index1':['[1]']}^900

[0118] QR code domain name:

[0119] https: / / www.test.com / mpage / index?pNum=6101001010100801

[0120] The interception parameter in the target general parsing rule is splitParam1, the corresponding interception string is: pNum=, the index parameter is index1', the corresponding index value is: 1, and test can be the service provider name;

[0121] By intercepting the string pNum=, the QR code domain name is divided into two parts. The first array element is: https: / / www.test.com / mpage / index?, and the second array element is: 6101001010100801. Then, through the index value 1, the charging pile coding information is located as the element after the intercepted string pNum=, that is, 6101001010100801 is the charging pile coding information.

[0122] In one embodiment, Figure 5As shown, the QR code domain name is intercepted according to the intercepted string to obtain the first array element and the second array element, including:

[0123] Step 502, segment the QR code domain name according to the intercepted character string.

[0124] Step 504: determine the content before the intercepted character string in the QR code domain name as the first array element.

[0125] Step 506: determine the content after the intercepted character string in the QR code domain name as the second array element.

[0126] Among them, the QR code domain name is intercepted according to the intercepted character string to obtain the first array element and the second array element. Specifically, the position of the intercepted character string in the QR code domain name is determined, and the QR code domain name is split based on the position as the splitting point. The QR code domain name is split into two parts, the first part is the content before the intercepted character string, which is determined as the first array element, and the content after the intercepted character string is determined as the second array element.

[0127] For example, the target general parsing rule is: ruleType1^service provider name^test.com?pNum^{'splitParam1':['pNum='],'index1':['[1]']}^900

[0128] QR code domain name:

[0129] https: / / www.test.com / mpage / index?pNum=6101001010100801

[0130] Among them, the interception parameter in the target general parsing rule is splitParam1, the corresponding interception string is: pNum=, the index parameter is index1', and the corresponding index value is: 1;

[0131] The QR code domain name is divided into two parts by intercepting the string pNum=, and the content before the intercepted string pNum= is determined as the first array element: https: / / www.test.com / mpage / index?, and the content after the intercepted string pNum= is determined as the second array element: 6101001010100801.

[0132] In one embodiment, Figure 6 As shown, the above method also includes:

[0133] Step 602: If the charging pile coding information corresponding to the charging pile cannot be determined from the first array element and the second array element according to the index value, the target array element is determined from the first array element and the second array element according to the index value.

[0134] Step 604: parse the target general parsing rule to obtain the next interception parameter and the corresponding next index parameter.

[0135] Step 606, obtaining the next interception string corresponding to the next interception parameter in the target general parsing rule.

[0136] Step 608, obtaining the next index value corresponding to the next index parameter in the target general parsing rule.

[0137] Step 610, intercept the target array element according to the next interception character string to obtain a first target array element and a second target array element.

[0138] Step 612: Determine the charging pile coding information corresponding to the charging pile from the first target array element and the second target array element according to the next index value.

[0139] Among them, if the charging coding information corresponding to the re-read installation cannot be determined from the first array element and the second array element according to the index value, it means that the design of the charging pile coding information is relatively complex and needs to be parsed from the first array element or the second array element.

[0140] Specifically, the target array element is determined from the first array element and the second array element according to the index value, indicating that the target array element may include charging pile coding information, and is searched from the target array element.

[0141] Furthermore, since the target general parsing rule may include at least one interception parameter and the interception parameters exist in order, when the first interception parameter cannot obtain the charging pile coding information, the next interception parameter and the corresponding next index parameter are parsed from the target general parsing rule to obtain the next interception string corresponding to the next interception parameter in the target general parsing rule and the next index value corresponding to the next index parameter.

[0142] Furthermore, the position corresponding to the next truncated string in the target array element is located, and the target array element is split into two parts with the position of the next truncated string as the split point. The front part of the next truncated string in the target array element is determined as the first target array element, and the rear part of the next truncated string in the target array element is determined as the second target array element.

[0143] Furthermore, the charging pile coding information corresponding to the charging pile is determined from the first target array element and the second target array element according to the next index value. If it still cannot be parsed, it is determined according to the next next intercepted string and the next next next index value, and so on, until the charging pile coding information is obtained.

[0144] In one embodiment, Figure 7 As shown, the target general parsing rule is parsed to obtain the charging pile coding information corresponding to the charging pile, including:

[0145] Step 702, determining whether the target general resolution rule includes the target domain name information and the target characters.

[0146] Step 704: If yes, split the QR code domain name according to the first character string to obtain multiple current array elements after splitting.

[0147] Step 706: Determine a first current array element from the split multiple current array elements according to the first index value of the first character string.

[0148] Step 708: split the first current array element according to the second character string to obtain a plurality of first current sub-array elements after splitting.

[0149] Step 710: determine a first coding element from the split multiple first current sub-array elements according to the second index value of the second character string.

[0150] The target domain name information is information related to the target domain name, which may be a target domain name address, etc. It may be determined based on actual business needs, actual product needs or actual application scenarios. For example, the target domain name information is saas.ecnne.com.

[0151] The target character is a preset character, which can be determined according to actual business needs, actual product needs or actual application scenarios. For example, the target character is &.

[0152] Among them, if the charging pile code cannot be directly parsed from the QR code domain name according to the target general parsing rules, it is necessary to generate the charging pile code through the target general parsing rules, and start charging through the generated charging pile code.

[0153] Specifically, it is determined whether the target general parsing rule includes the target domain name information and the target character. If it does, the QR code domain name is segmented according to the first character to obtain multiple current array elements after segmentation. The first character is the value corresponding to the segmentation parameter, which can be determined according to actual business needs, actual product needs or actual application scenarios. For example, the first character is pileNo=.

[0154] Further, a first index value corresponding to the first character is obtained, and the first current array element is determined from the split multiple current array elements by the first index value. The first current array element is then split according to the second character string to obtain multiple first current sub-array elements after the split, wherein the second character is a value corresponding to the segmentation parameter, which can be determined according to actual business needs, actual product needs or actual application scenarios, for example, the second character is &gunNo.

[0155] Finally, the first coding element is determined from the split multiple first current sub-array elements according to the second index value of the second character string.

[0156] For example, "ruleType2^keyword^else if(url.indexOf('saas.ecnne.com')!==-1&&url.indexOf('&')!==-1){pNum=url.split('pileNo=')[1].split('&gunNo')[0]

[0157] Among them, saas.ecnne.com is the target domain name information, & is the target character, pileNo= is the first string, 1 is the first index value of the first string, &gunNo is the second string, and 0 is the second index value of the second string.

[0158] Step 712: split the QR code domain name according to the third character string to obtain a plurality of second current array elements after the splitting.

[0159] Step 714: determine a second current sub-array element from the split multiple second current array elements according to the third index value corresponding to the third character string.

[0160] Step 716: split the second current sub-array element according to the target character to obtain a plurality of split third current sub-array elements.

[0161] Step 718: determine a second encoding element from the split multiple third current sub-array elements according to the target character index value corresponding to the target character.

[0162] Step 720: Generate charging pile coding information corresponding to the charging pile according to the first coding element, the second coding element and the target special symbol.

[0163] The third character is the value of the interception parameter determined according to actual business needs, actual product needs or actual application scenarios, for example, the third character string is: gunNo =. Specifically, the QR code domain name is split according to the third character string to obtain multiple second current array elements after the splitting, and then the second current sub-array element is determined from the multiple second current array elements after the splitting according to the third index value of the third character.

[0164] Furthermore, the second current sub-array element is segmented according to the target character to obtain a plurality of third current sub-array elements after segmentation, and the second encoding element is located from the plurality of third current sub-array elements by the target character index value corresponding to the target character.

[0165] Finally, the first coding element, the second coding element and the target special symbol are combined to form the charging pile coding information corresponding to the charging pile. The target special character can be determined according to actual business needs, actual product needs or actual application scenarios. For example, the target special character can be an underscore _.

[0166] For example, the target general parsing rule is:

[0167] "ruleType2^keyword^else if(url.indexOf('saas.ecnne.com')!==-1&&url.indexOf('&')!==-1)

[0168] {pNum=url.split('pileNo=')[1].split('&gunNo')[0]+'_'+url.split('gunNo=')[1].sp lit('&')[0]}^900"]

[0169] Among them, 'saas.ecnne.com' is the target domain name information, & is the target character, pileNo= is the first string, 1 is the first index value of the first string, &gunNo is the second string, 0 is the second index value of the second string, gunNo= is the third string, 1 is the third index value of the third string, & is the target character, 0 is the target character index value corresponding to the target character, and 900 is the rule weight coefficient.

[0170] In one embodiment, Figure 8 As shown, before obtaining the QR code domain name corresponding to the charging pile, it includes:

[0171] Step 802, receiving the QR code content and parsing principle corresponding to each charging pile.

[0172] Step 804, generating a general parsing rule corresponding to the charging pile according to the QR code content and parsing principle.

[0173] Step 806, setting the rule weight corresponding to each general parsing rule.

[0174] Step 808, storing the general parsing rules in descending order according to the rule weights to obtain a general parsing rule library.

[0175] Among them, the QR code of each charging pile of each service provider can be configured with a general parsing rule in advance, and the general parsing rule corresponding to each charging pile of each service provider can be obtained through configuration.

[0176] Specifically, the QR code content and the corresponding parsing principle corresponding to each charging pile are received, and the general parsing rules corresponding to the charging pile are generated by parsing the QR code content and the parsing principle. The general parsing rules are universal, and the composition format of the general parsing rules of different charging piles of different service providers is similar, including keywords, separators and parsing target strings. The parsing target string is a parameter used to parse the QR code domain name.

[0177] Furthermore, a corresponding rule weight is set for each general analysis rule, which can be set according to the usage flow of the service provider's charging pile, or according to actual business needs, actual product needs or actual application scenarios. Afterwards, each general analysis rule is stored in order from large to small according to the rule weight to obtain a general analysis rule library.

[0178] It should be understood that, although the various steps in the above-mentioned flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flow chart may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0179] In one embodiment, Fig. 9 As shown, a charging pile code scanning device 900 is provided, including: an acquisition module 902, a matching module 904, a parsing module 906 and an opening module 908, wherein:

[0180] The acquisition module 902 is used to obtain the QR code domain name corresponding to the charging pile.

[0181] The matching module 904 is used to obtain a matching target general parsing rule according to the QR code domain name.

[0182] The parsing module 906 is used to parse the target general parsing rule to obtain the charging pile coding information corresponding to the charging pile.

[0183] The activation module 908 is used to activate the charging pile according to the charging pile coding information.

[0184] In one embodiment, the matching module 904 extracts key information from the QR code domain name, obtains the corresponding QR code key information, and obtains a general parsing rule set, the general parsing rule set includes at least one general parsing rule, each general parsing rule is associated with a corresponding rule weight number, and each general parsing rule is traversed in order from large to small according to the rule weight number, and it is determined whether each general parsing rule includes the QR code key information. If so, the general parsing rule including the QR code key information is determined as the target general parsing rule. If not, the general parsing rule including the QR code domain name is determined as the target general parsing rule.

[0185] In one embodiment, the parsing module 906 parses the interception parameters and the corresponding index parameters from the target general parsing rules, obtains the interception string corresponding to the interception parameter in the target general parsing rules, obtains the index value corresponding to the index parameter in the target general parsing rules, intercepts the QR code domain name according to the interception string, obtains the first array element and the second array element, and determines the charging pile coding information corresponding to the charging pile from the first array element and the second array element according to the index value.

[0186] In one embodiment, the parsing module 906 segments the QR code domain name according to the intercepted string, determines the content before the intercepted string in the QR code domain name as the first array element, and determines the content after the intercepted string in the QR code domain name as the second array element.

[0187] In one embodiment, if the parsing module 906 cannot determine the charging pile coding information corresponding to the charging pile from the first array element and the second array element according to the index value, it determines the target array element from the first array element and the second array element according to the index value, parses the next interception parameter and the corresponding next index parameter from the target general parsing rule, obtains the next interception string corresponding to the next interception parameter in the target general parsing rule, obtains the next index value corresponding to the next index parameter in the target general parsing rule, intercepts the target array element according to the next interception string, obtains the first target array element and the second target array element, and determines the charging pile coding information corresponding to the charging pile from the first target array element and the second target array element according to the next index value.

[0188] In one embodiment, the parsing module 906 determines whether the target general parsing rule includes the target domain name information and the target character. If so, the two-dimensional code domain name is split according to the first character string to obtain multiple current array elements after the splitting, and the first current array element is determined from the multiple current array elements after the splitting according to the first index value of the first character string. The first current array element is split according to the second character string to obtain multiple first current sub-array elements after the splitting, and the first coding element is determined from the multiple first current sub-array elements after the splitting according to the second index value of the second character string. The two-dimensional code domain name is split according to the third character string to obtain multiple second current array elements after the splitting, and the second current sub-array element is determined from the multiple second current array elements after the splitting according to the third index value corresponding to the third character string. The second current sub-array element is split according to the target character to obtain multiple third current sub-array elements after the splitting, and the second coding element is determined from the multiple third current sub-array elements after the split according to the target character index value corresponding to the target character. The charging pile coding information corresponding to the charging pile is generated according to the first coding element, the second coding element and the target special symbol.

[0189] In one embodiment, the charging pile scanning device 900 receives the QR code content and parsing principle corresponding to each charging pile, generates a general parsing rule corresponding to the charging pile according to the QR code content and the parsing principle, sets the rule weight corresponding to each general parsing rule, and stores each general parsing rule from large to small according to the rule weight to obtain a general parsing rule library.

[0190] For the specific definition of the charging pile code scanning device, please refer to the definition of the charging pile code scanning method above, which will not be repeated here. Each module in the above-mentioned charging pile code scanning device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0191] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.10As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store charging pile coding information. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a charging pile code scanning method is implemented.

[0192] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.11 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a charging pile code scanning method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.

[0193] Those skilled in the art will understand that Fig.10 or Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0194] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: obtaining a QR code domain name corresponding to a charging pile, obtaining a matching target general resolution rule based on the QR code domain name, parsing the target general resolution rule to obtain charging pile coding information corresponding to the charging pile, and starting the charging pile based on the charging pile coding information.

[0195] In one embodiment, the processor also implements the following steps when executing the computer program: obtaining a matching target universal resolution rule based on the QR code domain name, including: extracting key information from the QR code domain name to obtain corresponding QR code key information, obtaining a universal resolution rule set, the universal resolution rule set including at least one universal resolution rule, each universal resolution rule being associated with a corresponding rule weight number, traversing each universal resolution rule in order from large to small according to the rule weight number, and determining whether each universal resolution rule includes the QR code key information. If so, the universal resolution rule including the QR code key information is determined as the target universal resolution rule. If not, the universal resolution rule including the QR code domain name is determined as the target universal resolution rule.

[0196] In one embodiment, when the processor executes the computer program, the following steps are also implemented: parsing the interception parameters and the corresponding index parameters from the target general parsing rules, obtaining the interception string corresponding to the interception parameter in the target general parsing rules, obtaining the index value corresponding to the index parameter in the target general parsing rules, intercepting the QR code domain name according to the interception string to obtain the first array element and the second array element, and determining the charging pile coding information corresponding to the charging pile from the first array element and the second array element according to the index value.

[0197] In one embodiment, when the processor executes the computer program, the following steps are also implemented: the QR code domain name is segmented according to the intercepted string, the content before the intercepted string in the QR code domain name is determined as the first array element, and the content after the intercepted string in the QR code domain name is determined as the second array element.

[0198] In one embodiment, the processor also implements the following steps when executing the computer program: if the charging pile coding information corresponding to the charging pile cannot be determined from the first array element and the second array element according to the index value, then the target array element is determined from the first array element and the second array element according to the index value, the next interception parameter and the corresponding next index parameter are parsed from the target general parsing rule, the next interception string corresponding to the next interception parameter in the target general parsing rule is obtained, the next index value corresponding to the next index parameter in the target general parsing rule is obtained, the target array element is intercepted according to the next interception string to obtain the first target array element and the second target array element, and the charging pile coding information corresponding to the charging pile is determined from the first target array element and the second target array element according to the next index value.

[0199] In one embodiment, the processor further implements the following steps when executing the computer program: determining whether the target general parsing rule includes the target domain name information and the target character, and if so, splitting the QR code domain name according to the first character string to obtain multiple current array elements after the splitting, determining the first current array element from the multiple current array elements after the splitting according to the first index value of the first character string, splitting the first current array element according to the second character string to obtain multiple first current sub-array elements after the splitting, determining the first coding element from the multiple first current sub-array elements after the splitting according to the second index value of the second character string, splitting the QR code domain name according to the third character string to obtain multiple second current array elements after the splitting, determining the second current sub-array element from the multiple second current array elements after the splitting according to the third index value corresponding to the third character string, splitting the second current sub-array element according to the target character to obtain multiple third current sub-array elements after the splitting, determining the second coding element from the multiple third current sub-array elements after the splitting according to the target character index value corresponding to the target character, and generating the charging pile coding information corresponding to the charging pile according to the first coding element, the second coding element and the target special symbol.

[0200] In one embodiment, when the processor executes the computer program, it also implements the following steps: receiving the QR code content and parsing principle corresponding to each charging pile, generating a general parsing rule corresponding to the charging pile according to the QR code content and the parsing principle, setting the rule weight corresponding to each general parsing rule, and storing each general parsing rule from large to small according to the rule weight to obtain a general parsing rule library.

[0201] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining a QR code domain name corresponding to a charging pile, obtaining a matching target general resolution rule based on the QR code domain name, parsing the target general resolution rule to obtain charging pile coding information corresponding to the charging pile, and turning on the charging pile based on the charging pile coding information.

[0202] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining a matching target universal resolution rule based on the QR code domain name, including: extracting key information from the QR code domain name to obtain corresponding QR code key information, obtaining a universal resolution rule set, the universal resolution rule set including at least one universal resolution rule, each universal resolution rule is associated with a corresponding rule weight number, and each universal resolution rule is traversed in order from large to small according to the rule weight number, and it is determined whether each universal resolution rule includes the QR code key information. If so, the universal resolution rule including the QR code key information is determined as the target universal resolution rule. If not, the universal resolution rule including the QR code domain name is determined as the target universal resolution rule.

[0203] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: parsing the interception parameters and the corresponding index parameters from the target general parsing rules, obtaining the interception string corresponding to the interception parameter in the target general parsing rules, obtaining the index value corresponding to the index parameter in the target general parsing rules, intercepting the QR code domain name according to the interception string to obtain the first array element and the second array element, and determining the charging pile coding information corresponding to the charging pile from the first array element and the second array element according to the index value.

[0204] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: the QR code domain name is segmented according to the intercepted string, the content before the intercepted string in the QR code domain name is determined as the first array element, and the content after the intercepted string in the QR code domain name is determined as the second array element.

[0205] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: if the charging pile coding information corresponding to the charging pile cannot be determined from the first array element and the second array element according to the index value, then the target array element is determined from the first array element and the second array element according to the index value, the next interception parameter and the corresponding next index parameter are parsed from the target general parsing rule, the next interception string corresponding to the next interception parameter in the target general parsing rule is obtained, the next index value corresponding to the next index parameter in the target general parsing rule is obtained, the target array element is intercepted according to the next interception string to obtain the first target array element and the second target array element, and the charging pile coding information corresponding to the charging pile is determined from the first target array element and the second target array element according to the next index value.

[0206] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining whether the target general parsing rule includes the target domain name information and the target character, and if so, splitting the QR code domain name according to the first character string to obtain multiple current array elements after the splitting, determining the first current array element from the multiple current array elements after the splitting according to the first index value of the first character string, splitting the first current array element according to the second character string to obtain multiple first current sub-array elements after the splitting, determining the first coding element from the multiple first current sub-array elements after the splitting according to the second index value of the second character string, splitting the QR code domain name according to the third character string to obtain multiple second current array elements after the splitting, determining the second current sub-array element from the multiple second current array elements after the splitting according to the third index value corresponding to the third character string, splitting the second current sub-array element according to the target character to obtain multiple third current sub-array elements after the splitting, determining the second coding element from the multiple third current sub-array elements after the splitting according to the target character index value corresponding to the target character, and generating the charging pile coding information corresponding to the charging pile according to the first coding element, the second coding element and the target special symbol.

[0207] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: receiving the QR code content and parsing principle corresponding to each charging pile, generating a general parsing rule corresponding to the charging pile according to the QR code content and the parsing principle, setting the rule weight corresponding to each general parsing rule, storing each general parsing rule from large to small according to the rule weight, and obtaining a general parsing rule library.

[0208] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0209] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0210] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A charging pile code scanning method, the method comprising: Get the QR code domain name corresponding to the charging pile; Obtaining a matching target general parsing rule according to the QR code domain name; Parsing the target general parsing rule to obtain the charging pile coding information corresponding to the charging pile; The charging pile is turned on according to the charging pile coding information.

2. The method according to claim 1, characterized in that The obtaining of a matching target general parsing rule according to the QR code domain name includes: Extract key information from the QR code domain name to obtain corresponding QR code key information; Obtaining a general parsing rule set, the general parsing rule set comprising at least one general parsing rule, each of the general parsing rules being associated with a corresponding rule weight number; Traversing the general parsing rules in descending order of the rule weights; Determine whether each of the general parsing rules includes the key information of the QR code; If yes, then determining the universal parsing rule including the key information of the QR code as the target universal parsing rule; If not, the universal resolution rule including the QR code domain name is determined as the target universal resolution rule.

3. The method according to claim 1, characterized in that The parsing of the target general parsing rule to obtain the charging pile coding information corresponding to the charging pile includes: Parsing the interception parameters and the corresponding index parameters from the target general parsing rule; Obtaining an intercepted string corresponding to the interception parameter in the target general parsing rule; Obtaining the index value corresponding to the index parameter in the target general parsing rule; The two-dimensional code domain name is intercepted according to the intercepted character string to obtain a first array element and a second array element; The charging pile coding information corresponding to the charging pile is determined from the first array element and the second array element according to the index value.

4. The method according to claim 3, characterized in that The method of intercepting the QR code domain name according to the intercepted character string to obtain a first array element and a second array element includes: Segmenting the QR code domain name according to the intercepted character string; Determine the content before the intercepted character string in the QR code domain name as the first array element; The content after the intercepted character string in the QR code domain name is determined as the second array element.

5. The method according to claim 3, characterized in that: The method further comprises: If the charging pile coding information corresponding to the charging pile cannot be determined from the first array element and the second array element according to the index value, determining the target array element from the first array element and the second array element according to the index value; Parsing the next interception parameter and the corresponding next index parameter from the target general parsing rule; Obtaining the next interception string corresponding to the next interception parameter in the target general parsing rule; Obtaining a next index value corresponding to the next index parameter in the target general parsing rule; The target array element is intercepted according to the next intercepted character string to obtain a first target array element and a second target array element; The charging pile coding information corresponding to the charging pile is determined from the first target array element and the second target array element according to the next index value.

6. The method according to claim 1, characterized in that The step of parsing the target general parsing rule to obtain the charging pile coding information corresponding to the charging pile includes: Determining whether the target general parsing rule includes target domain name information and target characters; If yes, split the QR code domain name according to the first character string to obtain multiple current array elements after splitting; Determine a first current array element from the split multiple current array elements according to a first index value of the first character string; Splitting the first current array element according to the second character string to obtain a plurality of first current sub-array elements after splitting; Determine a first coding element from the split multiple first current sub-array elements according to the second index value of the second character string; Splitting the QR code domain name according to the third character string to obtain a plurality of second current array elements after the splitting; Determine a second current sub-array element from the split multiple second current array elements according to a third index value corresponding to the third character string; Splitting the second current sub-array element according to the target character to obtain a plurality of split third current sub-array elements; Determine a second encoding element from the plurality of third current sub-array elements after the splitting according to the target character index value corresponding to the target character; The charging pile coding information corresponding to the charging pile is generated according to the first coding element, the second coding element and the target special symbol.

7. The method according to claim 1, characterized in that Before obtaining the QR code domain name corresponding to the charging pile, the following steps are included: Receive the QR code content and parsing principle corresponding to each charging pile; Generate a general parsing rule corresponding to the charging pile according to the QR code content and the parsing principle; Setting the rule weight corresponding to each of the general parsing rules; The general parsing rules are stored in descending order according to the rule weights to obtain a general parsing rule library.

8. A charging pile code scanning device, characterized in that: The device comprises: An acquisition module is used to obtain the QR code domain name corresponding to the charging pile; A matching module, used for obtaining a matching target general parsing rule according to the QR code domain name; A parsing module, used to parse the target general parsing rule to obtain the charging pile coding information corresponding to the charging pile; The activation module is used to activate the charging pile according to the charging pile coding information.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Charging method and device, equipment and storage medium

    CN121361369A