Quick response (QR) code dynamic parsing
Dynamic QR code parsing allows for the update of QR code information by matching key-value pairs with a configuration API, addressing the challenge of static data in QR codes and simplifying the process of format changes, thereby reducing development efforts and enhancing usability.
Patent Information
- Application Number
- PCT/US2023/016387
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-27
- Publication Date
- 2024-10-03
AI Technical Summary
Existing QR code technologies require static information, making it difficult to dynamically update or change the data encoded in QR codes without modifying the code itself, leading to complex and time-consuming development processes when format changes occur.
Implementing a method for dynamic QR code parsing that involves scanning the QR code to obtain key-value pairs, calling a Configuration API to fetch and match keys from a configuration file, and updating the associated values, allowing for changes in the configuration without altering the QR code itself.
This approach enables dynamic updates to QR code information without requiring changes to the QR code, reducing development efforts and allowing for seamless use across multiple users without the need for new QR code builds, thus enhancing readability, reusability, and convenience.
Smart Images

Figure US2023016387_03102024_PF_FP_ABST
Abstract
Description
TECHNICAL FIELD
[0001] This description relates to Quick Response (QR) Code dynamic parsing, and method of using the same.BACKGROUND
[0002] Barcode systems are used in a wide range of fields, including the manufacturing, distribution and retailing industries. In the 1990s, due to a shift from mass manufacturing of one type of product to more flexible production, detailed production control information at manufacturing sites was increasingly relied upon. In 1994, Denso Wave, a subsidiary of Toyota Group, developed a two-dimensional code that provided increased data capacity. The two-dimensional code is referred to as a Quick Response (QR) Code is a type of matrix barcode (or two-dimensional barcode). A barcode is a machine-readable optical label that can contain information about an item that the QR Code is attached.
[0003] QR Codes are capable of encoding a large amount of data in a machine-readable format. QR Codes are capable of being read by smartphones and other devices with a camera. Usage of QR codes include sharing links to websites, displaying contact information, making payments, tracking inventory, identifying locations, etc. For example, QR Codes are able to efficiently record product information and trace an item’s path along a supply chain, including from the time that parts arrive in a warehouse to shipment of products to customers.
[0004] Typically, once static information or data is embedded or printed in a QR code, the information cannot be changed. Currently, a QR code value is directly displayed by scanning QR code through JavaScript Object Notation (JSON) with a predefined format. In response to the QR code format being changed, the code is modified for a new QR code format. However, in response to the QR code format being changed, development changes have to be made.SUMMARY
[0005] In at least embodiment, a method for performing dynamic Quick Response (QR) Code parsing includes scanning a QR Code to obtain one or more Key- Value Pairs, calling a Configuration Application Programming Interface (API) to fetch at least one Key and associated Label from a configuration file, determining, from the at least one Key fetched by the Configuration API from the configuration file, a matching Key that matches a Key from the one or more Key-Value Pairs of the QR Code, obtaining a Value associated with the Keyfrom the one or more Key- Value Pairs of the QR Code that matches the matching Key, and setting a Value associated with Label of the matching Key to the Value associated with the Key from the one or more Key-Value Pairs of the QR Code matching the matching Key.
[0006] In at least one embodiment, an apparatus for performing dynamic Quick Response (QR) Code parsing includes a memory storing computer-readable instructions, and a processor connected to the memory, wherein the processor is configured to execute the computer- readable instructions to perform operations to scan a QR Code to obtain one or more Key- Value Pairs, call a Configuration Application Programming Interface (API) to fetch at least one Key and associated Label from a configuration file, determine, from the at least one Key fetched by the Configuration API from the configuration file, a matching Key that matches a Key from the one or more Key-Value Pairs of the QR Code, obtain a Value associated with the Key from the one or more Key- Value Pairs of the QR Code that matches the matching Key, and set a Value associated with Label of the matching Key to the Value associated with the Key from the one or more Key-Value Pairs of the QR Code matching the matching Key.
[0007] In at least one embodiment, a non-transitory computer-readable media having computer-readable instructions stored thereon, which when executed by a processor causes the processor to perform operations including scanning a QR Code to obtain one or more Key- Value Pairs, calling a Configuration Application Programming Interface (API) to fetch at least one Key and associated Label from a configuration file, determining, from the at least one Key fetched by the Configuration API from the configuration file, a matching Key that matches a Key from the one or more Key-Value Pairs of the QR Code, obtaining a Value associated with the Key from the one or more Key -Value Pairs of the QR Code that matches the matching Key, and setting a Value associated with Label of the matching Key to the Value associated with the Key from the one or more Key-Value Pairs of the QR Code matching the matching Key.BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Aspects of the present disclosure are best understood from the following detailed description when read with the accompanying figures. It is noted that, in accordance with the practice in the industry, various features are not drawn to scale. In fact, the dimensions of the various features are able to be increased or reduced for clarity of discussion.
[0009] Fig. 1 illustrates a Quick Response (QR) Code system according to at least one embodiment.
[0010] Fig. 2 illustrates a comparison of Key / Value Pairs in a and a QR Code according to at least one embodiment.
[0011] Fig. 3 is a flow chart of a method for performing QR Code Dynamic Parsing according to at least one embodiment.
[0012] Fig. 4 is a flow chart of a method for direct key matching with the configuration for setting values according to at least one embodiment.
[0013] Fig. 5 is a high-level functional block diagram of a processor-based system according to at least one embodiment.DETAILED DESCRIPTION
[0014] Embodiments described herein describes examples for implementing different features of the provided subject matter. Examples of components, values, operations, materials, arrangements, or the like, are described below to simplify the present disclosure. These are, of course, examples and are not intended to be limiting. Other components, values, operations, materials, arrangements, or the like, are contemplated. For example, the formation of a first feature over or on a second feature in the description that follows include embodiments in which the first and second features are formed in direct contact and include embodiments in which additional features are formed between the first and second features, such that the first and second features are unable to make direct contact. In addition, the present disclosure repeats reference numerals and / or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in dictate a relationship between the various embodiments and / or configurations discussed.
[0015] Further, spatially relative terms, such as “beneath,” “below,” “lower,” “above,” “upper” and the like, are used herein for ease of description to describe one element or feature’s relationship to another element(s) or feature(s) as illustrated in the figures. The spatially relative terms are intended to encompass different orientations of the device in use or operation in addition to the orientation depicted in the figures. The apparatus is otherwise oriented (rotated 90 degrees or at other orientations) and the spatially relative descriptors used herein likewise are interpreted accordingly.
[0016] Terms like “user equipment,” “mobile station,” “mobile,” “mobile device,” “computing device”, “subscriber station,” “subscriber equipment,” “access terminal,” “terminal,” “handset,” and similar terminology, refer to a wireless device utilized by a subscriber or user of a wireless communication service to receive or convey data, control, voice, video, sound, gaming, data-streams or signaling-streams. The foregoing terms are utilized interchangeably in the subject specification and related drawings. The terms “access point,” “base station,” “Node B,” “evolved Node B (eNode B),” next generation Node B (gNB), enhanced gNB (en-gNB), home Node B (HNB),” “home access point (HAP),” or the like refer to a wireless network component or apparatus that serves and receives data, control, voice, video, sound, gaming, data-streams or signaling-streams from UE.
[0017] In at least embodiment, a method for performing dynamic Quick Response (QR) Code parsing includes scanning a QR Code to obtain one or more Key- Value Pairs, calling a Configuration Application Programming Interface (API) to fetch at least one Key and associated Label from a configuration file, determining, from the at least one Key fetched by the Configuration API from the configuration file, a matching Key that matches a Key from the one or more Key-Value Pairs of the QR Code, obtaining a Value associated with the Key from the one or more Key- Value Pairs of the QR Code that matches the matching Key, and setting a Value associated with Label of the matching Key to the Value associated with the Key from the one or more Key-Value Pairs of the QR Code matching the matching Key.
[0018] Embodiments described herein provide a method that provides one or more advantages. For example, being able to change the information in a configuration, e.g., JSON File, rather than in QR Codes in an authorized manner provides greater possibilities. In response to QR code key / value being changed, development operations are not made at the mobile application end and convenience is provided to users because a user does not have to update their application. QR Code dynamic parsing according to at least one embodiment increases readability of code, increases re-usability of code, and reduces the effort and time of developer.
[0019] Fig. 1 illustrates a Quick Response (QR) Code system 100 according to at least one embodiment.
[0020] In Fig. 1, a JavaScript Object Notation (JSON) File 112 is created and maintained at Server 110. JSON File 112 is used as a configuration file, but those skilled in the art will recognize that other file formats are capable of being used without departing from the scope of embodiments described herein. A JSON File is plain text written in JavaScript Object Notation and is able to store and transmit data objects having Key / Value Pairs. A QR Code 170 is able to be Provisioned 150 based on the JSON File 112. Server 110 maintains a Database 160 that is able to store QR Code information and JSON files.
[0021] Computing Device 180 is able to implement a Configuration Application Programming Interface (API) 184 that is used to fetch labels associated with JSON File 112. Configuration API 184 of Computing Device 180 is able to display labels associated with a QR Code 170. Computer Device 180 is also able to perform a Scan 186 of QR Codes 170 and display information QR Code information obtained via the Scan 186.
[0022] QR codes 170 are used for many purposes. For example, QR codes 170 are able to beused for holding data such as text, addresses, phone numbers, e-mail addresses, URLs, links to apps, payment information, accounts authentication data, inventory management, etc.
[0023] QR Codes 170 often contain data for a locator, identifier, or tracker that points to a website or application. QR Codes 170 use four standardized encoding modes (numeric, alphanumeric, byte / binary, and kanji) to store data efficiently; extensions may also be used. QR Codes 170 have become popular due to fast readability and greater storage capacity compared to UPC barcodes.
[0024] QR Codes 170 are used in commercial tracking applications and convenience-oriented applications aimed at mobile-phone users (termed mobile tagging). Equipment is able to be tracked from a warehouse to deployment where the field engineer photographs a piece of equipment’s QR Code 170 to obtain information, such as the serial number, the serial number, product number, material codes, etc. A field engineer is then able to send the QR Code 170 and captured information to a remote server that maintains a digital record of such information. Equipment is able to be allocated an IP address, and upgrades, deployment to the cloud, etc. is able to be performed efficiently. Thus, QR Codes 170 are able to hold different kinds of data and to be used to solve different problems.
[0025] QR Codes 170 are capable of being scanned within a couple of seconds. QR Codes 170 Codes are able to be read using a camera of a smartphones, or by devices specifically designed for reading QR Codes 170 , e.g., third-party applications or dedicated QR readers.
[0026] QR Codes 170 are able to be used to display text to the user, to open a webpage on the user's device, to add a vCard contact to the user's device, to open a Uniform Resource Identifier (URI), to connect to a wireless network, or to compose an email or text message. There are a great many QR code generators available as software or as online tools that are either free, or are based on a paid subscription. QR Codes 170 are one of the most-used types of two- dimensional code.
[0027] Information in QR Code 170 is able to include one or more sets of key / value pairs that are used to exchange information. A format of a QR code is able to be changed. QR keys are able to be configured from server.
[0028] As shown in Fig. 1, a JSON File 112 is stored at a Server 110. The format of a QR Code 170 is defined by a set of key / value pairs that are used to exchange information. The QR Code 170 is Provisioned 150 where the QR Code 170 is able to then be scanned. A Computing Device 180, such as a mobile phone, includes a QR Code Reader / Scanner 182. In at least one embodiment, QR Code Reader / Scanner 182 is a camera and associated scanning software. Computing Device 180 is able to call Configuration API 184. Configuration API 184 fetcheskey / value pairs from the JSON File 112 at the Server 110. A Database 160 is able to store one or more JSON Files 112 and data associated with QR Code 170. Computing Device 180 uses QR Code Reader / Scanner 182 to perform a Scan 186 of QR Code 170. Key / Value Pairs obtained from the scan of the QR Code 170 are able to be displayed on Computing Device 180.
[0029] Using Configuration API 184, a correspondence between the Keys of JSON File 112 and keys in a QR Code 170 is determined. The Keys and Value labels in the Configuration API 184 are compared to the Keys and Value produced by the scan of the QR Code 170 .
[0030] In response to the Keys of JSON File 112 and QR Code 170 matching, then the corresponding Value from the QR Code 170 is set in the Computing Device 180 and the next Key / Value Pair is fetched until there are no further Keys to consider. In response to the Keys of JSON File 112 and QR Code 170 not matching, the next key is fetched until there are no further keys to consider.
[0031] Fig. 2 illustrates a comparison 200 of Key / Value Pairs in a JSON File and a QR Code according to at least one embodiment.
[0032] In Fig. 2, Configuration API 210 is called to Fetch Key / Value Pairs From JSON file 220. Configuration API 210 shows the obtained Key / Value Pairs From JSON File (JSON Response) 220 based on the call to the Configuration API 210. In Configuration API 210, the Key “serial number” 222 is shown with “serial number label” 232.
[0033] The Key “product number” 224 is shown with “product number label” 234. The Key “mat code” 226 is shown with “mat code label” 236. According to embodiments described herein, Key / Value Pairs 220 are able to include a greater number of keys and value labels, or a fewer number of keys and value labels.
[0034] Fig. 2 also shows QR Code 240. QR Code 240 includes black squares arranged in a square grid on a white background, including some fiducial markers, which can be read by an imaging device such as a camera, and processed using error correction algorithms until the image is appropriately interpreted. Data is then extracted from patterns that are present in horizontal and vertical components of the image.
[0035] QR Code 240 are created using a particular format. A particular format refers to a set of Key / Value Pairs 250 associated with the QR Code 240. In response to the Keys being the same in the QR Code 240 and in a JSON File 220, the Keys are considered to be in the same format. Key names indicate what a particular value represents.
[0036] QR Code 240 is defined by a set of Key / Value Pairs 250 that are used to exchange information. Key / Value Pairs From A Scan 250 of QR Code 240 are obtained.
[0037] In response to a change in the format of the QR code 240, a change to the Key in thecode has to be made. This results in a new build of the QR Code 240 having to be generated. For example, QR Code 240 is able to be used by many users, e.g., 1,000 users. Developers of the QR Code 240 determine that the format of the QR Code 240 is to be changed, such as “Serial Number” is changed to “SN ” This value is changed in the QR Code 240. A new build of the QR Code 240 is generated and released. However, many users are impacted by the release of a new QR Code 240. Further, the process involved in response to a format change being made and a new QR Code 240 being generated is complex and time consuming.
[0038] Key / Value Pairs From A Scan 250 of QR Code 240 reveals the Key “serial number” 252 is shown with label “1234” 262. The Key “product number” 254 is shown with label “123456” 264. The Key “mat code” 256 is shown with label “0808098” 266.
[0039] QR Code 240 is also able to include a greater number of keys and value labels, or a fewer number of keys and value labels. For example, QR Code 240 is able to include Key / Value Pairs for Product ID, Lot ID, Serial number, Sublocation, Order labels and status, and any other applicable information. QR Code 240 is able to include more information than is able to be provided by linear codes. Dynamic QR Codes enable automatically updating product details without printing new labels. Addition information is able to be added and mistakes are able to be corrected virtually.
[0040] As shown in Fig. 2, Configuration API 210 is called and the Configuration API fetches Key / Value Pairs 220 from a JSON file. The JSON response from the Configuration API 210 is compared to the Key / Value Pairs Scanned 250 from QR Code 240. A determination is made whether the local label for Keys 252, 254, 256 from the scan of the QR Code 240 match labels of Keys 222, 224, 226 in Configuration API 210. A comparison is thus made between Keys 222, 224, 226 and associated Labels 232, 234, 236 from the JSON File to the Keys 252, 254, 256 and Values 262, 264, 266 of the QR Code. A match is determined between Keys 222, 224, 226 from the JSON File to the Keys 252, 254, 256 of the QR Code.
[0041] In response to finding no match of the local label for Keys 252, 254, 256 from the scan of the QR Code240 and labels of Keys 222, 224, 226 in Configuration API 210, the next key is fetched for analysis. In response to a match of a local label for Keys 252, 254, 256 from the scan of the QR Code 240 and a label of Keys 222, 224, 226 in Configuration API 210, the Value 262, 264, 266 from the QR Code 240 is obtained.
[0042] As shown in Fig. 2, the Key “serial number” 222 in the Configuration API 210 matches the Key “serial number” 252 from the QR Code 240. However, “serial number label” 232 is different from the serial number label “1234” 262 of QR Code 250. The Values 262, 264, 266 obtained from the QR Code 240 is set for as the Values for the corresponding label 232, 234,236 in the Mobile Device. Because Key “serial number” 222 and Key “serial number” 252 are the same, then the Value associated with Key “serial number” 252 from the QR Code, i.e., “1234” 262, is obtained from the Scan 250 and “1234” 262 is set for the Value for the label 232 for Key “serial number” 222.
[0043] After setting Value for the label 232, the next key is fetched. The key “product number” 224 in the Configuration API 210 matches the key “product number” 254 from the QR Code 240. Because keys “product number” 224, 254 are the same, then the value from the QR Code, i.e., “123456” 264 is obtained from the Scan 250 and “123456” 264 is set for the value for the label 234 for “product number” 224. The next key is fetched.
[0044] The key “mat code” 226 in the Configuration API 210 matches the key “mat code” 256 from the QR Code 240. Because keys “mat code” 226, 256 are the same, then the value from the QR Code, i.e., “0808098” 266 is obtained from the Scan 250 and “123456” 266 is set for the value for the label 236 for “mat code” 226.
[0045] Because no additional Key / Value Pairs 220 are in the Configuration API 210, the process completes. Thus, in response to a change in the format, only the information in the Configuration API 210 is changed. Embodiments described herein avoid having to change the code for the QR Code 240 and then creating and releasing a new build of the QR Code 240. For example, a QR Code 240 used in a mobile application is not changed, but rather only the configuration is changed. An application is capable of being used by 1,000s of users. Instead of the 1000s of users having to update their application due to a change in the format of the QR Code 240, only the configuration is changed. The configuration objects are provided by the server through the Configuration API 210, e.g., the content in the JSON File 220. Thus, the label in the Configuration API 210 are checked and their value set in response to a change.
[0046] Fig. 3 is a flow chart 300 of a method for performing QR Code Dynamic Parsing according to at least one embodiment.
[0047] In Fig 3, the process starts S302 and Configuration API is Called to Fetch Key / Value Pairs from the Input JSON file S310. Referring to Fig. 2, Configuration API 210 is called to Fetch Key / Value Pairs From JSON file 220. Configuration API 210 shows the obtained Key / Value Pairs From JSON File (JSON Response) 220 based on the call to the Configuration API 210.
[0048] A JSON file is input at a server S314. Referring to Fig. 1, a JSON file is stored at a server. JSON File 112 is used as a configuration file, but those skilled in the art will recognize that other file formats are capable of being used without departing from the scope of embodiments described herein.
[0049] A QR Code is scanned S318. Referring to Fig. 2, the format of a QR Code 240 is defined by a set of Key / Value Pairs that are used to exchange information. Key / Value Pairs From A Scan 250 of QR Code 240 are obtained.
[0050] A determination is made whether keys are to be checked, e.g., have all Key / Value Pairs been considered S322.
[0051] In response to no further Key / Value Pairs to be considered S328, the process completes S360.
[0052] In response to additional Key / Value Pairs to be considered S326, Configuration API fetches Key / Value Pairs from the JSON file S330. Referring to Fig. 2, Configuration API 210 fetches Key / Value Pairs 220 from a JSON file. The JSON response from the Configuration API 210 is compared to the Key / Value Pairs Scanned 250 from QR Code 240. Referring to Fig, 2, a correspondence between the Keys 222, 224, 226 of JSON file 220 and Keys 252, 254, 256 of QR Code 240 are determined. The Keys 222, 224, 226 and Value Labels 232, 234, 236 in the Configuration API 210 are compared to the Keys 252, 254, 256 and Values 262, 264, 266 produced by the scan of the QR Code 240.
[0053] A determination is made whether the local label for Keys from the scan of the QR Code match labels of Key in Configuration API S334. Referring to Fig. 2, a determination is made whether the local label for Keys 252, 254, 256 from the scan of the QR Code 240 match labels of Keys 222, 224, 226 in Configuration API 210. A comparison is thus made between Keys 222, 224, 226 and associated Labels 232, 234, 236 from the JSON File to the Keys 252, 254, 256 and Values 262, 264, 266 of the QR Code. A match is determined between Keys 222, 224, 226 from the JSON File to the Keys 252, 254, 256 of the QR Code.
[0054] In response to finding no match of the local label for Keys from the scan of the QR Code and labels of Key in Configuration API S340, the next key is fetched S454.
[0055] In response to a match of a local label for Keys from the scan of the QR Code and a label of Key in Configuration API S338, the Value of local label from the QR Code is obtained from the scan of the QR Code S342. Referring to Fig. 2, in response to a match of a local label for Keys 252, 254, 256 from the scan of the QR Code 240 and a label of labels of Keys 222, 224, 226 in Configuration API 210, the Value 262, 264, 266 from the QR Code 240 is obtained. The Key “serial number” 222 in the Configuration API 210 matches the Key “serial number” 252 from the QR Code 240. However, “serial number label” 232 is different from the serial number label “1234” 262 of QR Code 250.
[0056] The Value of local label obtained from the QR Code is set for as the Value for the corresponding label in the Mobile Device S346. Referring to Fig. 2, the Values 262, 264, 266obtained from the QR Code 240 is set for as the Values for the corresponding label 232, 234, 236 in the Mobile Device. Because keys “serial number” 222, 252 are the same, then the value from the QR Code, i.e., “1234” 262 is obtained from the Scan 250 and “1234” 262 is set for the value for the label 232 for “serial number” 222.
[0057] The next key is fetched and the process repeats S354. Referring to Fig. 2, After setting Value for the label 232, the next key is fetched. The key “product number” 224 in the Configuration API 210 matches the key “product number” 254 from the QR Code 240. Because keys “product number” 224, 254 are the same, then the value from the QR Code, i.e., “123456” 264 is obtained from the Scan 250 and “123456” 264 is set for the value for the label 234 for “product number” 224. The next key is fetched. The key “mat code” 226 in the Configuration API 210 matches the key “mat code” 256 from the QR Code 240. Because keys “mat code” 226, 256 are the same, then the value from the QR Code, i.e., “0808098” 266 is obtained from the Scan 250 and “123456” 266 is set for the value for the label 236 for “mat code” 226.
[0058] In at least embodiment, a method for performing dynamic Quick Response (QR) Code parsing includes scanning a QR Code to obtain one or more Key- Value Pairs, calling a Configuration Application Programming Interface (API) to fetch at least one Key and associated Label from a configuration file, determining, from the at least one Key fetched by the Configuration API from the configuration file, a matching Key that matches a Key from the one or more Key-Value Pairs of the QR Code, obtaining a Value associated with the Key from the one or more Key- Value Pairs of the QR Code that matches the matching Key, and setting a Value associated with Label of the matching Key to the Value associated with the Key from the one or more Key-Value Pairs of the QR Code matching the matching Key.
[0059] A QR Code is scanned to obtain one or more Key-Value Pairs. A Configuration Application Programming Interface (API) is called to fetch at least one Key and associated Label from a configuration file. From the at least one Key fetched by the Configuration API from the configuration file, a matching Key is determined that matches a Key from the one or more Key-Value Pairs of the QR Code. A Value associated with the Key from the one or more Key-Value Pairs of the QR Code is obtained that matches the matching Key. A Value associated with Label of the matching Key is set to the Value associated with the Key from the one or more Key-Value Pairs of the QR Code matching the matching Key. Thus, in response to a change in the format, only the information in the Configuration API is changed. Embodiments described herein avoid having to change the code for the QR Code and then creating and releasing a new build of the QR Code . For example, a QR Code used in a mobileapplication is not changed, but rather only the configuration is changed. An application is capable of being used by 1,000s of users. Instead the 1000s of users having to update their application due to a change in the format of the QR Code, only the configuration is changed. The configuration objects are provided by the server through the Configuration API, e.g., the content in the JSON File. Thus, the label in the Configuration API are checked and their value set in response to a change.
[0060] In at least embodiment, a method for performing dynamic Quick Response (QR) Code parsing includes scanning a QR Code to obtain one or more Key- Value Pairs, calling a Configuration Application Programming Interface (API) to fetch at least one Key and associated Label from a configuration file, determining, from the at least one Key fetched by the Configuration API from the configuration file, a matching Key that matches a Key from the one or more Key-Value Pairs of the QR Code, obtaining a Value associated with the Key from the one or more Key- Value Pairs of the QR Code that matches the matching Key, and setting a Value associated with Label of the matching Key to the Value associated with the Key from the one or more Key-Value Pairs of the QR Code matching the matching Key.
[0061] Fig. 4 is a flow chart 400 of a method for direct key matching with the configuration information according to at least one embodiment.
[0062] In Fig. 4, a process starts S402 and a Configuration API is called S410. Referring to Fig. 2, Referring to Fig. 2, Configuration API 210 is called to Fetch Key / Value Pairs From JSON file 220.
[0063] Keys are fetched from the Configuration API S414. Referring to Fig. 2, the Configuration API fetches Key / Value Pairs 220 from a JSON file.
[0064] The QR Code is scanned S418. Referring to Fig. 2, Key / Value Pairs From A Scan 250 of QR Code 240 are obtained.
[0065] A determination is made whether the QR Code Key matches the Key from the Configuration API S422. Referring to Fig. 2, a determination is made whether the local label for Keys 252, 254, 256 from the scan of the QR Code 240 match labels of Keys 222, 224, 226 in Configuration API 210 match.
[0066] In response to the QR Code Key matching the Key from the Configuration API S428, the Value for the Key is displayed S430. Referring to Fig. 2, in response to a match of a local label for Keys 252, 254, 256 from the scan of the QR Code 240 and a label of labels of Keys 222, 224, 226 in Configuration API 210, the Value 262, 264, 266 from the QR Code 240 is obtained. The Key “serial number” 222 in the Configuration API 210 matches the Key “serial number” 252 from the QR Code 240. However, “serial number label” 232 is different fromthe serial number label “1234” 262 of QR Code 250. The Values 262, 264, 266 obtained from the QR Code 240 is set for as the Values for the corresponding label 232, 234, 236 in the Configuration API 210. Because Key “serial number” 222 and Key “serial number” 252 are the same, then the Value associated with Key “serial number” 252 from the QR Code, i.e., “1234” 262 is obtained from the Scan 250 and “1234” 262 is set for the Value for the label 232 for Key “serial number” 222.
[0067] Then, a check is performed for the next Key in the Configuration API S440. Referring to Fig. 2, after setting Value for the label 232, the next key is fetched.
[0068] In response to the QR Code Key not matching the Key from the Configuration API S426, a check is performed for the next Key in the Configuration API S440. Referring to Fig. 2, in response to finding no match of the local label for Keys 252, 254, 256 from the scan of the QR Code240 and labels of Keys 222, 224, 226 in Configuration API 210, the next key is fetched for analysis.
[0069] In response to there being additional Keys to check S452, the next Key is fetched S460.
[0070] Then, the process repeats by retuning to determine whether the QR Code Key matches the Key from the Configuration API S422.
[0071] In response to there not being any additional Keys to check S444, the process ends S448. Referring to Fig. 2, because no additional Key / Value Pairs 220 are in the Configuration API 210, the process completes.
[0072] Fig. 5 is a high-level functional block diagram of a processor-based system 500 according to at least one embodiment.
[0073] In at least one embodiment, processing circuitry 500 performs QR Code Dynamic Parsing. Processing circuitry 500 implements QR Code Dynamic Parsing using Processor 502. Processing circuitry 500 also includes a Non-Transitory, Computer-Readable Storage Medium 504 that is used to implement QR Code Dynamic Parsing. Non-Transitory, Computer- Readable Storage Medium 504, amongst other things, is encoded with, i.e., stores, Instructions 506, i.e., computer program code, that are executed by Processor 502 causes Processor 502 to perform operations for performing QR Code Dynamic Parsing. Execution of Instructions 506 by Processor 502 represents (at least in part) an application which implements at least a portion of the methods described herein in accordance with one or more embodiments (hereinafter, the noted processes and / or methods).
[0074] Processor 502 is electrically coupled to Non-Transitory, Computer-Readable Storage Medium 504 via a Bus 508. Processor 502 is electrically coupled to an Input / Output (VO) Interface 510 by Bus 508. A Network Interface 512 is also electrically connected to Processor502 via Bus 508. Network Interface 512 is connected to a Network 514, so that Processor 502 and Non-Transitory, Computer-Readable Storage Medium 504 connect to external elements via Network 514. Processor 502 is configured to execute Instructions 506 encoded in Non- Transitory, Computer-Readable Storage Medium 504 to cause processing circuitry 500 to be usable for performing at least a portion of the processes and / or methods. In one or more embodiments, Processor 502 is a Central Processing Unit (CPU), a multi-processor, a distributed processing system, an Application Specific Integrated Circuit (ASIC), and / or a suitable processing unit.
[0075] Processing circuitry 500 includes I / O Interface 510. I / O interface 510 is coupled to external circuitry. In one or more embodiments, I / O Interface 510 includes a keyboard, keypad, mouse, trackball, trackpad, touchscreen, and / or cursor direction keys for communicating information and commands to Processor 502.
[0076] Processing circuitry 500 also includes Network Interface 512 coupled to Processor 502. Network Interface 512 allows processing circuitry 500 to communicate with Network 514, to which one or more other computer systems are connected. Network Interface 512 includes wireless network interfaces such as Bluetooth, Wi-Fi, Worldwide Interoperability for Microwave Access (WiMAX), General Packet Radio Service (GPRS), or Wideband Code Division Multiple Access (WCDMA); or wired network interfaces such as Ethernet, Universal Serial Bus (USB), or Institute of Electrical and Electronics Engineers (IEEE) 864.
[0077] Processing circuitry 500 is configured to receive information through VO Interface 510. The information received through VO Interface 510 includes one or more of instructions, data, design rules, libraries of cells, and / or other parameters for processing by Processor 502. The information is transferred to Processor 502 via Bus 508. Processing circuitry 500 is configured to receive information related to a Configuration Application Programming Interface (API) 520 through VO Interface 510. The information is stored in Non-Transitory, Computer-Readable Storage Medium 504 as Key-Value Pairs in Configuration API 520.
[0078] In one or more embodiments, one or more Non-Transitory, Computer-Readable Storage Medium 504 having stored thereon Instructions 506 (in compressed or uncompressed form) that may be used to program a computer, processor, or other electronic device) to perform processes or methods described herein. The one or more Non-Transitory, Computer-Readable Storage Medium 504 include one or more of an electronic storage medium, a magnetic storage medium, an optical storage medium, a quantum storage medium, or the like.
[0079] For example, the Non-Transitory, Computer-Readable Storage Medium 504 may include, but are not limited to, hard drives, floppy diskettes, optical disks, read-only memories(ROMs), random access memories (RAMs), erasable programmable ROMs (EPROMs), electrically erasable programmable ROMs (EEPROMs), flash memory, magnetic or optical cards, solid-state memory devices, or other types of physical media suitable for storing electronic instructions. In one or more embodiments using optical disks, the one or more Non- Transitory Computer-Readable Storage Media 504 includes a Compact Disk-Read Only Memory (CD-ROM), a Compact Disk-Read / Write (CD-R / W), and / or a Digital Video Disc (DVD).
[0080] In one or more embodiments, Non-Transitory, Computer-Readable Storage Medium 504 stores Instructions 506 configured to cause Processor 502 to perform at least a portion of the processes and / or methods for performing QR Code Dynamic Parsing. In one or more embodiments, Non-Transitory, Computer-Readable Storage Medium 504 also stores information, such as algorithm which facilitates performing at least a portion of the processes and / or methods for implementing QR Code Dynamic Parsing 522, QAR Code Scanning 524, and Inputting of JSON File 526.
[0081] Accordingly, in at least one embodiment, Processor 502 executes Instructions 506 stored on the one or more Non-Transitory, Computer-Readable Storage Medium 504 to implement Configuration API 532 that is present in Display 530. Configuration API 532 also includes an UI for QR Code Label Management 534. Processing circuitry 500 includes a Cord Reader / Scanner 516, such as a camera, for scanning QR Codes based upon QR Code Scanning 524 provided by Non-Transitory, Computer-Readable Storage Medium 504. QR Code Key / Value Pair Listing 540 is presented by Display 530. Processor 502 executes Instructions 506 stored on the one or more Non-Transitory, Computer-Readable Storage Medium 504 to call Configuration API 520 that fetches Key / Value Pairs from JSON File 526. Processor 502 performs Inputting of JSON File 526 via Configuration API 520 by accessing a server through Network Interface 512 and Network 514. Processor 502 displays the Keys and Labels From a JSON Response that contains content of JSON File 534 in the Configuration API 532. A JSON File is used as a configuration file, but those skilled in the art will recognize that other file formats are capable of being used without departing from the scope of embodiments described herein. Processor 502 uses Code Reader / Scanner 516 to obtain the QR Code Key / Value Pairs 540. Processor 502 also displays QR Code Key / Value Pair Listing 540.
[0082] Processor 502 uses UI For QR Code Label Management 536 of Configuration API 532 to compare Labels From JSON File 534 to QR Code Key / Value Pair Listing 540. For matching Keys, Processor 502 is able to set a Value from the QR Code Key / Value Pair Listing 540 as a Value for a Label From JSON File 534. Processor 502 fetches additional Keys until no furtherKey / Label Pairs are available for analysis in the Labels From JSON File 534 in the Configuration API 532. In response to no additional Key / Value Pairs 220 being available for analysis in the Labels From JSON File 534 in the Configuration API 532, the process completes.
[0083] Embodiments described herein provide a method that provides one or more advantages. For example, being able to change the information in an authorized manner provides greater possibilities. In response to QR code key / value being changed, development operations are not made at the mobile application end. QR Code dynamic parsing according to at least one embodiment increases readability of code, increases re-usability of code, and reduces the effort and time of developer. According to at least one embodiment, in response to a change in the format, only the information in the Configuration API is changed. Embodiments described herein avoid having to change the code for the QR Code and then creating and releasing a new build of the QR Code . For example, a QR Code used in a mobile application is not changed, but rather only the configuration is changed. An application is capable of being used by 1,000s of users. Instead the 1000s of users updating their application due to a change in the format of the QR Code, only the configuration is changed. The configuration objects are provided by the server through the Configuration API, e.g., the content in the JSON File. Thus, the label in the Configuration API are checked and their value set in response to a change.
[0084] An aspect of this description is directed to a method [1] for providing Quick Response (QR) Code dynamic parsing that includes scanning a QR Code to obtain one or more Key- Value Pairs, calling a Configuration Application Programming Interface (API) to fetch at least one Key and associated Label from a configuration file, determining, from the at least one Key fetched by the Configuration API from the configuration file, a matching Key that matches a Key from the one or more Key-Value Pairs of the QR Code, obtaining a Value associated with the Key from the one or more Key -Value Pairs of the QR Code that matches the matching Key, and setting a Value associated with Label of the matching Key to the Value associated with the Key from the one or more Key-Value Pairs of the QR Code matching the matching Key.
[0085] The method described in [1], further includes storing the configuration file in a Server, the configuration file being a JSON file.
[0086] The method described in any one of [1] to [2], further including determining whether an additional Key exists in the at least one Key fetched by the Configuration API from the configuration file.
[0087] The method described in any one of [1] to [3], further includes, in response to determining an additional Key does not exist in the at least one Key fetched by theConfiguration API from the configuration file, stopping Key processing.
[0088] The method described in any one of [1] to [4], further includes, in response to determining an additional Key exists in the at least one Key fetched by the Configuration API from the configuration file, fetching the additional Key.
[0089] The method described in any one of [1] to [5], wherein the calling the Configuration API to fetch at least one Key and associated Label from a configuration file includes calling the Configuration API to fetch at least one Key and associated Label from a JSON file.
[0090] The method described in any one of [1] to [6], wherein the calling a Configuration API to fetch at least one Key and associated Label from a configuration file includes receiving a JSON response that includes the at least one Key and associated Label from the JSON file, and wherein the determining, from the at least one Key fetched by the Configuration API from the configuration file, a matching Key that matches a Key from the one or more Key-Value Pairs of the QR Code includes comparing the at least one Key and associated Label from the JSON File to the Key-Value Pairs of the QR Code.
[0091] An aspect of this description is directed to an apparatus for performing dynamic Quick Response (QR) Code parsing [8], including a memory storing computer-readable instructions, and a processor connected to the memory, wherein the processor is configured to execute the computer-readable instructions to perform operations to scan a QR Code to obtain one or more Key-Value Pairs, call a Configuration Application Programming Interface (API) to fetch at least one Key and associated Label from a configuration file, determine, from the at least one Key fetched by the Configuration API from the configuration file, a matching Key that matches a Key from the one or more Key -Value Pairs of the QR Code, obtain a Value associated with the Key from the one or more Key -Value Pairs of the QR Code that matches the matching Key, and set a Value associated with Label of the matching Key to the Value associated with the Key from the one or more Key-Value Pairs of the QR Code matching the matching Key.
[0092] The apparatus described in [8], wherein the processor is further configured to store the configuration file in a Server, the configuration file being a JSON file.
[0093] The apparatus described in any one of [8] to [9], wherein the processor is further configured to determine whether an additional Key exists in the at least one Key fetched by the Configuration API from the configuration file.
[0094] The apparatus described in any one of [8] to
[0010] , wherein the processor is further configured to, in response to determining an additional Key does not exist in the at least one Key fetched by the Configuration API from the configuration file, stop Key processing.
[0095] The apparatus described in any one of [8] to
[0011] , wherein the processor is furtherconfigured to, in response to determining an additional Key exists in the at least one Key fetched by the Configuration API from the configuration file, fetch the additional Key.
[0096] The apparatus described in any one of [8] to
[0012] , wherein the processor is further configured to call the Configuration API to fetch at least one Key and associated Label from a configuration file by calling the Configuration API to fetch at least one Key and associated Label from a JSON file.
[0097] The apparatus described in any one of [8] to
[0013] , wherein the processor is further configured to call a Configuration API to fetch at least one Key and associated Label from a configuration file by receiving a JSON response that includes the at least one Key and associated Label from the JSON file; and to determine, from the at least one Key fetched by the Configuration API from the configuration file, a matching Key that matches a Key from the one or more Key-Value Pairs of the QR Code by comparing the at least one Key and associated Label from the JSON File to the Key-Value Pairs of the QR Code.
[0098] An aspect of this description is directed to a non-transitory computer-readable media having computer-readable instructions stored thereon [15}, which when executed by a processor causes the processor to perform operations including scanning a QR Code to obtain one or more Key-Value Pairs, calling a Configuration Application Programming Interface (API) to fetch at least one Key and associated Label from a configuration file, determining, from the at least one Key fetched by the Configuration API from the configuration file, a matching Key that matches a Key from the one or more Key- Value Pairs of the QR Code, obtaining a Value associated with the Key from the one or more Key-Value Pairs of the QR Code that matches the matching Key, and setting a Value associated with Label of the matching Key to the Value associated with the Key from the one or more Key-Value Pairs of the QR Code matching the matching Key.
[0099] The non-transitory computer-readable media described in
[0015] , further includes storing the configuration file in a Server, the configuration file being a JSON file.
[0100] The non-transitory computer-readable media described in any one of
[0015] to
[0016] , further including determining whether an additional Key exists in the at least one Key fetched by the Configuration API from the configuration file.
[0101] The non-transitory computer-readable media described in any one of
[0015] to
[0017] , further including in response to determining an additional Key does not exist in the at least one Key fetched by the Configuration API from the configuration file, stopping Key processing, and in response to determining an additional Key exists in the at least one Key fetched by the Configuration API from the configuration file, fetching the additional Key.
[0102] The non-transitory computer-readable media described in any one of
[0015] to
[0018] , wherein the calling the Configuration API to fetch at least one Key and associated Label from a configuration file includes calling the Configuration API to fetch at least one Key and associated Label from a JSON file.
[0103] The non-transitory computer-readable media described in any one of
[0015] to
[0019] , wherein the calling a Configuration API to fetch at least one Key and associated Label from a configuration file includes receiving a JSON response that includes the at least one Key and associated Label from the JSON file, and wherein the determining, from the at least one Key fetched by the Configuration API from the configuration file, a matching Key that matches a Key from the one or more Key-Value Pairs of the QR Code includes comparing the at least one Key and associated Label from the JSON File to the Key-Value Pairs of the QR Code.
[0104] Separate instances of these programs can be executed on or distributed across any number of separate computer systems. Thus, although certain steps have been described as being performed by certain devices, software programs, processes, or entities, other implementations are able to be used. A variety of alternative implementations will be understood by those having ordinary skill in the art.
[0105] Additionally, those having ordinary skill in the art readily recognize that the techniques described above can be utilized in a variety of devices, environments, and situations. Although the embodiments have been described in language specific to structural features or methodological acts, the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as exemplary forms of implementing the claims.
Claims
CLAIMSWHAT IS CLAIMED IS:
1. A method for performing dynamic Quick Response (QR) Code parsing, comprising: scanning a QR Code to obtain one or more Key-Value Pairs; calling a Configuration Application Programming Interface (API) to fetch at least one Key and associated Label from a configuration file; determining, from the at least one Key fetched by the Configuration API from the configuration file, a matching Key that matches a Key from the one or more Key-Value Pairs of the QR Code; obtaining a Value associated with the Key from the one or more Key-Value Pairs of the QR Code that matches the matching Key; and setting a Value associated with the associated Label of the matching Key to the Value associated with the Key from the one or more Key -Value Pairs of the QR Code matching the matching Key.
2. The method of claim 1 further comprising storing the configuration file in a Server, the configuration file being a JSON file.
3. The method of claim 1 further comprising determining whether an additional Key exists in the at least one Key fetched by the Configuration API from the configuration file.
4. The method of claim 3 further comprising, in response to determining the additional Key does not exist in the at least one Key fetched by the Configuration API from the configuration file, stopping Key processing.
5. The method of claim 3 further comprising, in response to determining the additional Key exists in the at least one Key fetched by the Configuration API from the configuration file, fetching the additional Key.
6. The method of claim 1, wherein the calling the Configuration API to fetch the at least one Key and associated Label from the configuration file includes calling the Configuration API to fetch the at least one Key and associated Label from a JSON file.
7. The method of claim 1, wherein the calling the Configuration API to fetch the at least one Key and associated Label from the configuration file includes receiving a JSON response that includes the at least one Key and associated Label from a JSON file, and wherein the determining, from the at least one Key fetched by the Configuration API from the configuration file, the matching Key that matches the Key from the one or more Key- Value Pairs of the QR Code includes comparing the at least one Key and associated Label from the JSON File to the Key-Value Pairs of the QR Code.
8. An apparatus for performing dynamic Quick Response (QR) Code parsing, comprising: a memory storing computer-readable instructions; and a processor connected to the memory, wherein the processor is configured to execute the computer-readable instructions to perform operations to: scan a QR Code to obtain one or more Key-Value Pairs; call a Configuration Application Programming Interface (API) to fetch at least one Key and associated Label from a configuration file; determine, from the at least one Key fetched by the Configuration API from the configuration file, a matching Key that matches a Key from the one or more Key-Value Pairs of the QR Code; obtain a Value associated with the Key from the one or more Key-Value Pairs of the QR Code that matches the matching Key; and set a Value associated with the associated Label of the matching Key to the Value associated with the Key from the one or more Key-Value Pairs of the QR Code matching the matching Key.
9. The apparatus of claim 8, wherein the processor is further configured to store the configuration file in a Server, the configuration file being a JSON file.
10. The apparatus of claim 8, wherein the processor is further configured to determine whether an additional Key exists in the at least one Key fetched by the Configuration API from the configuration file.
11. The apparatus of claim 10, wherein the processor is further configured to, in response to determining the additional Key does not exist in the at least one Key fetched by the Configuration API from the configuration file, stop Key processing.
12. The apparatus of claim 10, wherein the processor is further configured to, in response to determining the additional Key exists in the at least one Key fetched by the Configuration API from the configuration file, fetch the additional Key.
13. The apparatus of claim 8, wherein the processor is further configured to call the Configuration API to fetch the at least one Key and associated Label from the configuration file by calling the Configuration API to fetch the at least one Key and associated Label from a JSON file.
14. The apparatus of claim 8, wherein the processor is further configured to: call a Configuration API to fetch the at least one Key and associated Label from the configuration file by receiving a JSON response that includes the at least one Key and associated Label from a JSON file; and determine, from the at least one Key fetched by the Configuration API from the configuration file, the matching Key that matches the Key from the one or more Key-Value Pairs of the QR Code by comparing the at least one Key and associated Label from the JSON File to the Key-Value Pairs of the QR Code.
15. A non-transitory computer-readable media having computer-readable instructions stored thereon, which when executed by a processor causes the processor to perform operations comprising: scanning a QR Code to obtain one or more Key-Value Pairs; calling a Configuration Application Programming Interface (API) to fetch at least one Key and associated Label from a configuration file; determining, from the at least one Key fetched by the Configuration API from the configuration file, a matching Key that matches a Key from the one or more Key-Value Pairs of the QR Code; obtaining a Value associated with the Key from the one or more Key-Value Pairs of the QR Code that matches the matching Key; and setting a Value associated with the associated Label of the matching Key to the Value associated with the Key from the one or more Key -Value Pairs of the QR Code matching the matching Key.
16. The non-transitory computer-readable media of claim 15 further comprising storing the configuration file in a Server, the configuration file being a JSON file.
17. The non-transitory computer-readable media of claim 15 further comprising determining whether an additional Key exists in the at least one Key fetched by the Configuration API from the configuration file.
18. The non-transitory computer-readable media of claim 17 further comprising: in response to determining the additional Key does not exist in the at least one Key fetched by the Configuration API from the configuration file, stopping Key processing; and in response to determining the additional Key exists in the at least one Key fetched by the Configuration API from the configuration file, fetching the additional Key.
19. The non-transitory computer-readable media of claim 15, wherein the calling the Configuration API to fetch the at least one Key and associated Label from the configuration file includes calling the Configuration API to fetch the at least one Key and associated Label from a JSON file.
20. The non-transitory computer-readable media of claim 15, wherein the calling the Configuration API to fetch the at least one Key and associated Label from the configuration file includes receiving a JSON response that includes the at least one Key and associated Label from the JSON file, and wherein the determining, from the at least one Key fetched by the Configuration API from the configuration file, the matching Key that matches the Key from the one or more Key-Value Pairs of the QR Code includes comparing the at least one Key and associated Label from the JSON File to the Key -Value Pairs of the QR Code.
Citation Information
Patent Citations
Point of Sale Apparatuses, Methods and Systems
US20170124564A1
Point of Sale Apparatuses, Methods and Systems
US20180260813A1
Antifraud Resilient Transaction Identifier Datastructure Apparatuses, Methods and Systems
US20200402049A1
