Code scanning method and electronic equipment
By automatically sharing QR code information between electronic devices, the problem of low code scanning efficiency in scenes with large flow of people is solved, and 'one person scans the code and many people output' is realized, which improves travel efficiency and enhances safety and security. User experience.
Patent Information
- Application Number
- CN202310230192.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing QR code scanning methods are inefficient in scenarios with large flow of people, resulting in people gathering and travel efficiency reduced.
Through a code scanning method, the first electronic device is allowed to scan the QR code and automatically send the QR code information to the second electronic device, realizing 'one person scans the code and multiple people output the scan result', thereby improving the efficiency of scanning the code and Reduce the gathering of people.
It improves the efficiency of scanning codes in multi-person scenarios, reduces the waiting time for people at the QR code, improves travel efficiency, and improves security and user experience through group sharing and preset applications.
Smart Images

Figure CN118569288A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic equipment, and in particular to a code scanning method and electronic equipment. Background Art
[0002] In some scenarios, people need to scan a code at the entrance when entering a public place. When the flow of people increases in a short period of time, the scanning efficiency is low because everyone needs to use their own electronic device to scan the code. Summary of the invention
[0003] The present application provides a code scanning method and an electronic device, which can improve the code scanning efficiency.
[0004] In order to achieve the above objectives, this application adopts the following technical solutions:
[0005] In a first aspect, a code scanning method is provided, which is applied to a first electronic device, and the method includes: in response to a first operation, scanning a QR code, obtaining QR code information corresponding to the QR code, and sending the QR code information to a second electronic device; and outputting a scanning result corresponding to the scanned QR code.
[0006] Based on the above technical solution, after an electronic device scans the code, it can obtain the corresponding QR code information and send the QR code information to other electronic devices, so that other electronic devices can parse the QR code information and output the parsing results. For users of other electronic devices, there is no need to wait at the code scanning location to scan the QR code to output the parsing results, which reduces the time required for multiple people to scan the code, and can achieve the effect of "one person scans the code, and multiple people output the scan results". For scenarios where multiple people scan the code, such as but not limited to family groups, colleague groups, and other scenarios where multiple people need to scan the code when traveling, the scanning efficiency can be improved, avoiding the situation where a large number of people gather at the QR code to scan the code, and improving people's travel efficiency.
[0007] In one possible design, sending the QR code information to the second electronic device includes: automatically sending the QR code information to the second electronic device in response to the first operation. Based on this design, after an electronic device scans the code, the acquired QR code information can be automatically sent to other electronic devices, and the operation of sharing the QR code information is realized without user operation, thereby improving the user experience and further improving the scanning efficiency.
[0008] In one possible design, scanning a QR code includes: scanning the QR code through a first application; sending the QR code information to a second electronic device includes: sending the QR code information to the second electronic device through a second application.
[0009] In one possible design, the method further includes: in response to the second operation, creating a group through the second application, the group includes a first user identifier and a second user identifier, the first user identifier corresponds to the first electronic device, and the second user identifier corresponds to the second electronic device; sending the QR code information to the second electronic device includes: sending the QR code information to the second electronic device through the group. Based on this design, the first electronic device and the second electronic device are electronic devices in the same group, that is, the first electronic device only sends the QR code information to the second electronic device belonging to the same group, which realizes the trust association of the team scanning service and can improve the security of scanning.
[0010] In one possible design, before creating a group through the second application in response to the second operation, the method further includes: outputting a first message, where the first message is used to remind the user whether to create a group.
[0011] In one possible design, the first application is the same as the second application. Based on this design, existing applications can be directly improved, and the function of sharing QR code information can be embedded into existing applications, thereby achieving the effect of "one person scans the code, and multiple people output the scan results". For scenarios where multiple people need to scan codes, such as family groups, groups of colleagues, and other scenarios where multiple people need to scan codes when traveling, the efficiency of scanning codes can be improved, avoiding the situation where a large number of people gather at the QR code to scan codes, and improving people's travel efficiency.
[0012] In one possible design, the first application is different from the second application, and the first application obtains the QR code information according to the scanned QR code; sending the QR code information to the second electronic device includes: the first application sends the QR code information to the second application; the second application sends the QR code information to the second electronic device. Based on this design, the electronic device that performs the code scanning operation is different from the electronic device that performs the QR code information sharing operation, that is, the first electronic device and the second electronic device can perform the QR code information sharing operation through a proprietary application, which can improve the efficiency of code scanning while not changing the information of other applications, thereby ensuring the security of user information and reducing the complexity of implementation.
[0013] In one possible design, before the first application sends the QR code information to the second application, the method also includes: determining that the first application is a preset application.
[0014] In one possible design, before sending the QR code information to the second electronic device, the method also includes: in response to the third operation, setting a preset application through the second application.
[0015] In one possible design, before sending the QR code information to the second electronic device, the method also includes: outputting a second message, where the second message is used to remind the user whether to send the QR code information to the second electronic device.
[0016] In one possible design, the QR code information includes at least one of a QR code link or a QR code image.
[0017] In one possible design, the method further includes: outputting a parsing result of at least one second electronic device, where the parsing result is a result obtained by the second electronic device performing a parsing operation on the QR code information. Based on this design, the user of the first electronic device can be informed of the parsing result of the second electronic device on the QR code information, and the parsing result of the second electronic device can be directly presented by the first electronic device.
[0018] In a second aspect, a code scanning method is provided, which is applied to a second electronic device, and the method includes: receiving two-dimensional code information from a first electronic device, the two-dimensional code information being obtained based on the two-dimensional code scanned by the first electronic device; performing a code scanning and parsing operation based on the two-dimensional code information; and outputting a code scanning and parsing result.
[0019] In one possible design, a code scanning and parsing operation is performed according to the QR code information, including: automatically performing a code scanning and parsing operation according to the QR code information.
[0020] In one possible design, QR code information is received from the first electronic device through the second application.
[0021] In one possible design, the second electronic device corresponds to the second user identifier in the group, the first electronic device corresponds to the first user identifier in the group, and the group is created by the first electronic device through the second application.
[0022] In one possible design, before receiving the QR code information from the first electronic device, the method also includes: outputting a third message, where the third message is used to remind the user whether to join the group.
[0023] In one possible design, before performing a code scanning operation and parsing operation based on the QR code information, the method also includes: outputting a fourth message, where the fourth message is used to remind the user whether to receive the QR code information from the first electronic device.
[0024] In one possible design, before performing a scanning operation and parsing operation based on the QR code information, the method further includes: determining that the location of the second electronic device is within a preset range.
[0025] In a third aspect, an electronic device is provided, which has the function of implementing the method described in the first aspect or the second aspect and any one of the designs thereof. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0026] In a fourth aspect, an electronic device is provided, including a processor, a memory, and a communication interface, wherein the memory and the communication interface are coupled to the processor, the communication interface is used to communicate with other devices, the memory is used to store computer program codes, the computer program codes include computer instructions, and the processor reads the computer instructions from the memory so that the electronic device executes the method as described in the first aspect or the second aspect and any one of the designs thereof. Optionally, the memory may be coupled to the processor, or may be independent of the processor.
[0027] In one possible design, the electronic device also includes a display screen, which can be used for the device to perform display operations.
[0028] In a fifth aspect, a computer-readable storage medium is provided, the computer-readable storage medium comprising a computer program, and when the computer program runs on an electronic device, the electronic device executes the method described in the first aspect or the second aspect and any design thereof.
[0029] In a sixth aspect, a computer program product is provided. When the computer program product runs on a computer, the computer is caused to execute the method described in the first aspect or the second aspect and any design thereof.
[0030] In the seventh aspect, a chip system is provided, comprising at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to at least one processor, and when the at least one processor executes the instructions, the at least one processor executes the method described in the first aspect or the second aspect and any design thereof.
[0031] In an eighth aspect, a code scanning system is provided, including a first electronic device and a second electronic device; the first electronic device is used to: scan a QR code in response to a first operation, obtain QR code information corresponding to the QR code, and send the QR code information to the second electronic device; output a scanning result corresponding to the scanned QR code; the second electronic device is used to: receive the QR code information from the first electronic device.
[0032] In one possible design, the first electronic device is specifically configured to automatically send QR code information to the second electronic device in response to a first operation.
[0033] In one possible design, the first electronic device is specifically used to: scan the QR code through a first application, and send the QR code information to the second electronic device through a second application.
[0034] In one possible design, the first electronic device is also used to create a group through a second application in response to a second operation, and the group includes a first user identifier and a second user identifier, the first user identifier corresponds to the first electronic device, and the second user identifier corresponds to the second electronic device; the first electronic device is also used to send QR code information to the second electronic device through the group.
[0035] In one possible design, the first electronic device is also used to output a first message, and the first message is used to remind the user whether to create a group.
[0036] In one possible design, the first application is the same as the second application.
[0037] In one possible design, the first application is different from the second application, and the first application obtains QR code information based on the scanned QR code; the first electronic device is specifically used to: send the QR code information to the second application through the first application; and send the QR code information to the second electronic device through the second application.
[0038] In one possible design, the first electronic device is also used to determine that the first application is a preset application.
[0039] In one possible design, the first electronic device is specifically configured to set a preset application through the second application in response to the third operation.
[0040] In one possible design, the first electronic device is also used to output a second message, and the second message is used to remind the user whether to send the QR code information to the second electronic device.
[0041] In one possible design, the QR code information includes at least one of a QR code link or a QR code image.
[0042] In one possible design, the first electronic device is also used to output the parsing result of at least one second electronic device, where the parsing result is a result obtained by the second electronic device performing a parsing operation on the QR code information.
[0043] In one possible design, the second electronic device is also used to: perform a parsing operation based on the QR code information; and output a parsing result.
[0044] In one possible design, the second electronic device is specifically used to automatically perform parsing operations based on the QR code information.
[0045] In one possible design, the second electronic device is specifically used to receive the QR code information from the first electronic device through the second application.
[0046] In one possible design, the second electronic device is also used to output a third message, and the third message is used to remind the user whether to join the group.
[0047] In one possible design, the second electronic device is also used to output a fourth message, and the fourth message is used to remind the user whether to receive the QR code information from the first electronic device.
[0048] In one possible design, the second electronic device is also used to determine that the location of the second electronic device is within a preset range.
[0049] It should be noted that the technical effects brought about by any design in the above-mentioned second to eighth aspects can refer to the technical effects brought about by the corresponding design in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A schematic diagram of the architecture of a communication system provided in an embodiment of the present application;
[0051] Figure 2 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;
[0052] Figure 3 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application;
[0053] Figure 4 Interface diagram provided for the embodiment of the present application Figure 1 ;
[0054] Figure 5 Interface diagram provided for the embodiment of the present application Figure 2 ;
[0055] Figure 6 Interface diagram provided for the embodiment of the present application Figure 3 ;
[0056] Figure 7 Interface diagram provided for the embodiment of the present application Figure 4 ;
[0057] Figure 8 Interface diagram provided for the embodiment of the present application Figure 5 ;
[0058] Fig. 9 Interface diagram provided for the embodiment of the present application Figure 6 ;
[0059] Fig.10 Interface diagram provided for the embodiment of the present application Figure 7 ;
[0060] Fig.11 Interface diagram provided for the embodiment of the present application Figure 8 ;
[0061] Fig.12 A flowchart of a code scanning method provided in an embodiment of the present application;
[0062] Fig.13 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application;
[0063] Fig.14 A schematic diagram of the structure of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0064] The technical solution provided by the embodiments of the present application is described in detail below in conjunction with the accompanying drawings.
[0065] The terms "including" and "having" and any variations thereof mentioned in the description of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0066] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0067] In the description of this application, unless otherwise specified, the meaning of "plurality" refers to two or more. "And / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0068] In the current scanning solution, users need to start the camera function of their respective electronic devices to shoot the QR code, or start the application installed in their respective electronic devices to read the QR code image before the QR code can be scanned. In other words, each user needs to perform an independent scanning action, and the scanning efficiency of this solution is low. In this way, when using this solution to scan QR codes in some scenes, congestion problems may occur due to the gathering of a large number of people, reducing people's travel efficiency.
[0069] Based on this, an embodiment of the present application provides a code scanning method that can improve the efficiency of code scanning and thereby improve people's travel efficiency.
[0070] The technical solution provided by the embodiment of the present application can be applied to various scenarios that require code scanning, including but not limited to various scenarios such as "entry registration", "entry reservation", and "electronic sign-in". For example, "entry registration", "entry reservation", etc. can refer to the scenario where a user enters a public place and scans various forms of QR codes such as mini programs and public accounts of the place to register for entry reservations or display electronic tickets for entry. For another example, "electronic sign-in" can refer to the scenario where a user scans a QR code in a place such as a conference site to sign in.
[0071] For example, Figure 1 FIG. 1 is a schematic diagram showing the architecture of a communication system 10 for applying a code scanning method provided in an embodiment of the present application. Figure 1 As shown, the communication system 10 includes a first electronic device 100 and at least one second electronic device 200 ( Figure 2 4 are shown in FIG.
[0072] The first electronic device 100 and at least one second electronic device 200 may establish a communication connection through wired communication technology and / or wireless communication technology. Exemplarily, the wireless communication technology includes but is not limited to at least one of the following: near field communication (NFC), Bluetooth (BT) (e.g., traditional Bluetooth or Bluetooth low energy (BLE)), wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Zigbee, frequency modulation (FM), infrared (IR), wide area network transferred through a relay device, etc.
[0073] Exemplarily, when the wireless communication technology is the above-mentioned wide area network, the wireless communication technology can be a third-generation mobile communication technology (3rd-generation wireless telephone technology, 3G) network, a fourth-generation mobile communication technology (the 4th generation mobile communication technology, 4G) network, a fifth-generation mobile communication technology (5th-generation mobile communication technology, 5G) network, a future evolved public land mobile network (public land mobile network, PLMN) or the Internet, etc.
[0074] In some embodiments, both the first electronic device 100 and the second electronic device 200 support a proximity discovery function. Exemplarily, after the first electronic device 100 approaches the second electronic device 200, the first electronic device 100 and the second electronic device 200 can discover each other, and then establish a wireless communication connection such as a Wi-Fi peer to peer (P2P) connection, a Bluetooth connection, etc. After the wireless communication connection is established, the first electronic device 100 and the second electronic device 200 can implement signal interaction through the wireless communication connection.
[0075] In some embodiments, the first electronic device 100 and the second electronic device 200 may establish a wireless communication connection via a local area network. For example, the first electronic device 100 and the second electronic device 200 are both connected to the same router.
[0076] In some embodiments, the first electronic device 100 and the second electronic device 200 may establish a wireless communication connection through a cellular network, the Internet, etc. For example, the second electronic device 200 accesses the Internet through a router, and the first electronic device 100 accesses the Internet through a cellular network; further, the first electronic device 100 and the second electronic device 200 establish a wireless communication connection.
[0077] In some embodiments, the first electronic device 100 is a device for scanning a code. In other words, the first electronic device 100 may be an electronic device held by the first user. After the first user turns on the code scanning function of the first electronic device 100 and scans a QR code in a certain scene, in response to the operation of the first user, the first electronic device 100 completes the code scanning operation (or code scanning action). Then, the first electronic device 100 may output the code scanning result (for example, the display screen displays the code scanning result, the voice broadcasts the code scanning result, etc.).
[0078] In some embodiments, after the first electronic device 100 completes the code scanning operation, the acquired two-dimensional code information can be sent to the second electronic device 200. That is, the first electronic device performs a two-dimensional code scanning operation, can obtain the two-dimensional code information corresponding to the two-dimensional code, determine the result of scanning the two-dimensional code according to the two-dimensional code information, output the scanning result corresponding to the scanned two-dimensional code, and share the two-dimensional code information corresponding to the two-dimensional code with the second electronic device. Correspondingly, the second electronic device 200 can receive the two-dimensional code information from the first electronic device 100.
[0079] Exemplarily, the two-dimensional code information can be a two-dimensional code image, or can be the content after the two-dimensional code is parsed, such as a two-dimensional code link, etc. The present application does not limit the specific form of the two-dimensional code information. The second electronic device 200 can perform a parsing operation according to the two-dimensional code information. Then, the second electronic device 200 can also output the scan result.
[0080] Optionally, the second electronic device may be an electronic device held by a second user.
[0081] In some embodiments, the first electronic device 100 and the second electronic device 200 may be electronic devices that join the same group. That is, after the first electronic device 100 and the second electronic device 200 join the same group, the first electronic device 100 can send the acquired QR code information to the second electronic device 200 in the group only after completing the code scanning operation. Alternatively, after completing the code scanning operation, the first electronic device 100 can share the acquired QR code information with a certain group. Accordingly, the second electronic device 200 in the group can receive the QR code information shared by the first electronic device 100 through the group.
[0082] In some embodiments, the first user and the second user may be users belonging to the same group, such as the group may include but not limited to various groups consisting of multiple people, such as family groups, colleague groups, friend groups, and classmate groups. In other words, the first electronic device 100 and the second electronic device 200 may be electronic devices held by users belonging to the same group. Accordingly, the electronic devices held by each user in the same group can join the same group. In this way, after the electronic device held by a user in the group performs a code scanning operation, the acquired QR code information can be shared with the electronic devices of other users in the group, which can improve the code scanning efficiency and enable quick code scanning for group users.
[0083] It is understood that the "scanning code" described in the embodiments of the present application may refer to scanning codes presented in various forms such as QR codes and bar codes. The embodiments of the present application are all introduced by taking QR codes as an example.
[0084] It is understandable. Figure 1The simplified schematic diagram is provided for ease of understanding. In actual applications, the above system may further include other devices which are not shown in the figure.
[0085] Optionally, the electronic device in the embodiment of the present application, such as the first electronic device 100 and the second electronic device 200, can be a mobile phone, a tablet computer, a handheld computer, a laptop computer, a netbook, a personal digital assistant (PDA), an artificial intelligence (AI) device, a wearable device, a smart home device and / or a smart city device. The operating system installed in the electronic device includes but is not limited to Or other operating systems. In some embodiments, the electronic device can be a fixed device or a portable device. This application does not limit the specific type of the electronic device or the installed operating system.
[0086] Optionally, the first electronic device 100 and the second electronic device 200 may be electronic devices of the same type or of different types. Similarly, different second electronic devices 200 may be electronic devices of the same type or of different types. Optionally, the operating system installed in the first electronic device 100 may be the same as or different from the operating system installed in the second electronic device 200. The operating systems installed in different second electronic devices 200 may be the same as or different.
[0087] For example, Figure 1 The first electronic device 100 is a mobile phone, and the at least one second electronic device 200 is respectively a smart watch, a tablet computer, a mobile phone, and a foldable screen mobile phone.
[0088] In the application embodiment, the electronic device is taken as a mobile phone as an example. Figure 2 , is a structural diagram of a mobile phone provided in an embodiment of the present application.
[0089] The mobile phone may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc.
[0090] The processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0091] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0092] The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.
[0093] In some embodiments, processor 210 may include one or more interfaces.
[0094] The charging management module 240 is used to receive charging input from a charger, where the charger can be a wireless charger or a wired charger.
[0095] The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240 to power the processor 210, the internal memory 221, the display screen 294, the camera 293, and the wireless communication module 260.
[0096] The wireless communication function of the mobile phone can be realized through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor and baseband processor.
[0097] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the mobile phone can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0098] The mobile communication module 250 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to mobile phones. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be set in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be set in the same device as at least some of the modules of the processor 210.
[0099] The wireless communication module 260 can provide wireless communication solutions for mobile phones, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module 260 can be one or more devices integrating at least one communication processing module.
[0100] In some embodiments, the antenna 1 of the mobile phone is coupled to the mobile communication module 250, and the antenna 2 is coupled to the wireless communication module 260, so that the mobile phone can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology.
[0101] In some embodiments of the present application, the mobile communication module 250 and / or the wireless communication module 260 may be used to implement the sending and receiving of QR code information, etc.
[0102] The mobile phone implements display functions through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 210 may include one or more GPUs that execute program instructions to generate or change display information.
[0103] The display screen 294 is used to display images, videos, etc. The display screen 294 includes a display panel. In some embodiments, the mobile phone may include 1 or N display screens 294, where N is a positive integer greater than 1. In some embodiments of the present application, the display screen 294 may be used to display the scan result.
[0104] The mobile phone can realize the shooting function through ISP, camera 293, video codec, GPU, display screen 294 and application processor.
[0105] The camera 293 is used to capture static images or videos. In some embodiments, the mobile phone may include 1 or N cameras 293, where N is a positive integer greater than 1. In some embodiments of the present application, the camera 293 may be used to capture a QR code image to implement a code scanning function of the mobile phone.
[0106] The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
[0107] The internal memory 221 can be used to store computer executable program codes, which include instructions. The internal memory 221 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 210 executes various functional applications and data processing of the mobile phone by running instructions stored in the internal memory 221 and / or instructions stored in a memory provided in the processor.
[0108] The mobile phone can implement audio functions such as music playing and recording through the audio module 270 and the application processor.
[0109] The audio module 270 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 270 can also be used to encode and decode audio signals. In some embodiments, the audio module 270 can be arranged in the processor 210, or some functional modules of the audio module 270 can be arranged in the processor 210.
[0110] Optionally, the sensor module 280 may include one or more of a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
[0111] The key 290 includes a power button, a volume button, etc. The key 290 can be a mechanical key or a touch key. The mobile phone can receive key input and generate key signal input related to the user settings and function control of the mobile phone.
[0112] Motor 291 can generate vibration prompts. Motor 291 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
[0113] Indicator 292 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0114] The SIM card interface 295 is used to connect a SIM card.
[0115] It is understandable that the above only uses a mobile phone as an example to illustrate the structure of the electronic device in the embodiment of the present application, but does not constitute a limitation on the structure and form of the electronic device. The embodiment of the present application does not limit the structure and form of the electronic device. Figure 3 Another exemplary structure of the electronic device provided by the embodiment of the present application is shown. Figure 3 As shown, the electronic device includes: a processor 301, a memory 302, a transceiver 303, and a display screen 304. The implementation of the processor 301, the memory 302, and the display screen 304 can be seen in Figure 2 The processor, memory, and display screen of the mobile phone shown in FIG. 3 are implemented. The transceiver 303 is used for the electronic device to interact with other devices. The transceiver 303 can be a device based on Wi-Fi, Bluetooth, or other communication protocols.
[0116] In some other embodiments of the present application, the electronic device may include Figure 2 , Figure 3 More or fewer components are shown, or some components are combined, or some components are separated, or different component arrangements are arranged. The components shown in the figure can be implemented in hardware, software, or a combination of software and hardware.
[0117] The technical solutions involved in the following embodiments can all be implemented in Figure 2 , Figure 3 The device of the structure shown, and Figure 1 The structure is implemented in the system shown.
[0118] The embodiment of the present application provides a code scanning method, which starts the code scanning function of the first electronic device, such as turning on the camera of the first electronic device to scan the QR code. In response to the operation of the first user, the first electronic device completes the code scanning operation. The first electronic device can send the acquired QR code information to the second electronic device. Correspondingly, after the second electronic device receives the QR code information from the first electronic device, it can perform a parsing operation according to the QR code information and output the parsing result. For example: if the QR code information is a QR code image, etc., the parsing operation can refer to the operation of scanning the QR code image. For another example: if the QR code information is information for obtaining the QR code, such as a QR code address, etc., the parsing operation can refer to the operation of obtaining the QR code according to the QR code address, etc., and scanning the QR code. For another example: if the QR code information is the content after the QR code is parsed, such as a QR code link, etc., the parsing operation can be an operation of obtaining the result corresponding to the QR code link.
[0119] Exemplarily, the analysis result can represent the check-in result of electronic check-in by scanning a QR code, or the result of registration or reservation by scanning a QR code, etc. The analysis result can be presented in various forms such as images, text, QR codes, etc., and this application does not impose any restrictions on this.
[0120] In this way, after the first electronic device scans the code, it can send the QR code information to the second electronic device, and then the second electronic device can perform a parsing operation based on the QR code information. For the user of the second electronic device, there is no need to wait at the code scanning location to scan the QR code to output the parsing result, which reduces the time required for multiple people to scan the code, and can achieve the effect of "one person scans the code, and multiple people output the scan results". For scenarios where multiple people scan the code, such as but not limited to family groups, colleague groups, and other scenarios where multiple people need to scan the code when traveling, the efficiency of scanning the code can be improved, avoiding the situation where a large number of people gather at the QR code to scan the code, and improving people's travel efficiency.
[0121] The following first introduces the process of the first electronic device completing the code scanning operation.
[0122] In some embodiments, the first user can open the scanning interface of the first electronic device through the first application installed in the first electronic device (such as but not limited to desktop applications, social applications, shopping applications, payment applications, health applications, etc.), and complete the scanning of the QR code through the scanning interface.
[0123] It can be understood that in the embodiment of the present application, the first application refers to various applications with a code scanning function that can be installed in current electronic devices.
[0124] Specifically, take the first application as a social application and the first electronic device as a mobile phone 1 as an example. Figure 4 As shown in (1), the mobile phone 1 displays a main interface 400 (or desktop 400), which includes one or more application icons, such as a calendar application icon, a weather application icon, etc., which are not described one by one here. The icons of different applications can be used to open the running interface of the corresponding application and implement the functions of the corresponding application. The one or more application icons include a social application icon 401.
[0125] If the mobile phone 1 detects a click operation of the first user on the icon 401 of the social application, in response to the operation, such as Figure 4 As shown in (2), mobile phone 1 displays the operation interface 410 of the social application. The operation interface 410 of the social application includes a control (or button) 411, which can be used to call up a "scan" function, and the "scan" function can be used to start the scanning interface of mobile phone 1. If mobile phone 1 detects a click operation of the first user on the control 411, in response to the operation, Figure 4As shown in (3), the mobile phone 1 displays a card 420. The card 420 includes a "Scan" option. Optionally, the card 420 may also include one or more options of initiating a group chat, adding friends, receiving and paying, etc. The functions of these options are not described in detail herein.
[0126] like Figure 4 As shown in (3), the mobile phone 1 detects a click operation of the first user on the "Scan" option 421, and responds to the operation, such as Figure 4 As shown in (4), the mobile phone 1 displays a code scanning interface 430. Then the mobile phone 1 can scan the QR code through the camera to complete the code scanning operation.
[0127] In other embodiments, the first user can use the second application installed in the first electronic device to open the code scanning interface of the first electronic device and complete the scanning of the QR code through the code scanning interface.
[0128] It can be understood that in the embodiments of the present application, the second application refers to a proprietary application that can be installed in an electronic device and can implement the operation of sending and receiving QR code information, and the second application is different from the first application. The second application may also be called a "team scanning application" or other names. In some embodiments, the second application can be used to send the acquired QR code information to other electronic devices or share it with a group after the electronic device performs a scanning operation. In one embodiment, the acquired QR code information can be automatically sent to other electronic devices or groups through the second application, or the acquired QR code information can be sent to other electronic devices or groups through the second application according to the user's input.
[0129] Specifically, the first electronic device is a mobile phone 1 and the second application is a team code scanning application. Figure 5 As shown in (1), mobile phone 1 displays a main interface 500 (or desktop 500), which includes an icon 501 of a team code scanning application. Mobile phone 1 detects a click operation of the first user on the icon 501 of the team code scanning application, and responds to the operation, such as Figure 5 As shown in (2), mobile phone 1 displays the running interface 510 of the team code scanning application. Optionally, the running interface 510 of the team code scanning application includes a "Scan" button. Mobile phone 1 detects a click operation of the "Scan" button 511 by the first user. In response to the operation, mobile phone 1 may also display a Figure 4 The code scanning interface 430 shown in (4) is shown in FIG. 4. Furthermore, the first user can scan the QR code through the code scanning interface 430, and in response to the operation, the mobile phone 1 completes the code scanning operation.
[0130] Understandably, Figure 5The location of the "Scan" button shown in (2) is for illustrative purposes only. The embodiment of the present application does not limit the specific operating interface and location of the team code scanning application where the "Scan" button is located.
[0131] Optionally, in the above embodiment, after the mobile phone 1 completes the code scanning operation, it can output the code scanning result. For example, the code scanning result can be such as Figure 5 As shown in the interface 520 shown in (3). It can be understood that Figure 5 The content of the scan result shown in the interface 520 shown in (3) is only for illustrative purposes. For example, the scan result can represent the result of electronic check-in by scanning a QR code, or the result of registration or reservation by scanning a QR code, etc. The scan result can be presented in various forms such as images, text, QR codes, etc., and this application does not limit this.
[0132] Furthermore, after the first electronic device completes the code scanning operation, the acquired QR code information can be sent to the second electronic device. That is, in response to a code scanning operation, the operation of outputting the code scanning result and sharing the QR code information obtained by scanning with the second electronic device can be performed. Optionally, the first electronic device can first perform the operation of outputting the code scanning result, and then perform the operation of sending the QR code information to the second electronic device. Alternatively, the operation of sending the QR code information to the second electronic device can be performed first, and then the operation of outputting the code scanning result can be performed. Alternatively, the aforementioned two operations can also be performed simultaneously, and the embodiment of the present application does not impose any restrictions on the order in which the first electronic device performs the aforementioned two operations.
[0133] In some embodiments, the first electronic device and the second electronic device are both installed with a second application, and the first electronic device can send the QR code information to the second electronic device through the second application. Correspondingly, the second electronic device can receive the QR code information from the first electronic device through the second application. In other words, the first electronic device and the second electronic device can perform the operation of sending and receiving QR code information through a proprietary application, which can improve the efficiency of scanning while not changing the information of other applications, thereby ensuring the security of user information and reducing the complexity of implementation.
[0134] As a specific embodiment, the first electronic device and the second electronic device may be electronic devices that join the same group. That is, the first electronic device can send the QR code information to the second electronic device in the same group through the second application. Alternatively, the first electronic device can send the QR code information to a certain group through the second application. Correspondingly, the second electronic device in the group can receive the QR code information through the group. In this way, the first electronic device only sends the QR code information to the second electronic device belonging to the same group, thereby realizing the trust association of the team code scanning service and improving the security of code scanning.
[0135] Optionally, the group may be created by a user who owns the first electronic device, that is, a first user, or may be created by a user who owns the second electronic device, that is, a second user.
[0136] In this embodiment, before performing the operation of sending and receiving the QR code information, it is necessary to first perform the operation of creating a group. The following takes the first electronic device as a mobile phone 1, and the first user creates the above group through the second application installed in the mobile phone 1 as an example, and takes the second application as a team scanning application for description, and introduces the process of creating a group.
[0137] For example, Figure 6 As shown in (1), mobile phone 1 displays the running interface 600 of the team code scanning application, and the running interface 600 includes a create group button 601. Mobile phone 1 detects a click operation of the first user on the create group button 601, and responds to the operation, such as Figure 6 In the interface 610 shown in (2), the mobile phone 1 can display the account and / or identity (ID) of one or more second electronic devices, such as Xiaohong, Xiaolan, Xiaoming, etc. The first user can select the account and / or ID of one or more second electronic devices according to actual needs. Figure 6 As shown in (2), the first user selects the second electronic devices with IDs of Xiaohong, Xiaoming, Xiaoli and Xiaowang, and clicks the completion button 611. In response to this operation, the mobile phone 1 creates a group 1. Group 1 includes the first electronic device and the second electronic device selected by the first user.
[0138] Optionally, before mobile phone 1 creates group 1, mobile phone 1 may also output such as Figure 6 The reminder message 620 shown in (3) is displayed to confirm whether the first user wants to create group 1. Optionally, the reminder message 620 includes a cancel button 621 and / or a confirm button 622. When the mobile phone 1 detects an operation such as a click of the confirm button 622 by the first user, in response to the operation, the group 1 is created. When the mobile phone 1 detects an operation such as a click of the cancel button 621 by the first user, in response to the operation, the creation of group 1 is canceled.
[0139] Optionally, during the process of mobile phone 1 creating group 1, the second electronic device may also output a reminder message to remind the second user whether to join group 1. For example, taking the second electronic device as mobile phone 2, the reminder message output by mobile phone 2 may be such as Figure 6As shown in the reminder message 630 shown in (4) in FIG. Optionally, the reminder message 630 may also include a cancel button 631 and / or a confirmation button 632. When the mobile phone 2 detects an operation such as a click of the confirmation button 632 by the second user, in response to the operation, the mobile phone 2 joins the group 1. When the mobile phone 2 detects an operation such as a click of the cancel button 631 by the second user, in response to the operation, the mobile phone 2 does not join the group 1.
[0140] Optionally, the above embodiment is based on such as Figure 6 The creation of a group by the create group button 601 shown in (1) is taken as an example. In other embodiments, a group may also be created by face-to-face group creation or the like. The embodiment of the present application does not specifically limit the method of creating a group.
[0141] It can be understood that the above is an example of a first user creating a group through a first electronic device. For implementation of a second user creating a group through a second electronic device, reference may be made to the above related implementation.
[0142] In some embodiments, the first electronic device and the second electronic device may only join one group, such as group 1. That is, the first user only creates a group through the first electronic device, or the second user only creates a group through the second electronic device.
[0143] In this embodiment, the first electronic device may send the QR code information to the second electronic device in the uniquely created group. Alternatively, the first electronic device may send the QR code information only to the uniquely created group. Accordingly, the second electronic device in the uniquely created group may receive the QR code information through the group.
[0144] In other embodiments, the first electronic device and the second electronic device may join multiple groups, such as group 1, group 2, group 3, group 4, etc. That is, the first user creates multiple groups through the first electronic device and the second user creates multiple groups through the second electronic device.
[0145] In this embodiment, as a possible implementation, the first electronic device may randomly send the QR code information to the second electronic device in some or all of the created groups. Alternatively, the first electronic device may randomly send the QR code information to some or all of the created groups. Accordingly, the second electronic device in these groups may receive the QR code information through the corresponding groups. For example: the created groups include Group 1, Group 2, Group 3, and Group 4, and the first electronic device may send the QR code information to any two groups from Group 1 to Group 4, etc.
[0146] As another possible implementation, the first electronic device may perform the operation of sending the QR code information according to a preset rule. For example, the preset rule may include: sending the QR code information to the second electronic device in a group of a preset type in the multiple groups that have been created by default, etc. Alternatively, sending the QR code information to a group of a preset type in the created groups by default. The preset type can be set by the developer or user according to actual needs.
[0147] Optionally, before the first electronic device performs the above-mentioned operation of sending the QR code information, the first electronic device may output a reminder message to remind the first user whether to send the QR code information to the second electronic device. For example, taking the first electronic device as a mobile phone 1 as an example, the reminder message may be such as Figure 7 As shown in the reminder message 701, optionally, the reminder message 701 may also include a cancel button 702 and / or a confirmation button 703. When the mobile phone 1 detects a click operation of the confirmation button 703 by the first user, in response to the operation, the mobile phone 1 performs an operation of sending the QR code information to the second electronic device. When the mobile phone 1 detects a click operation of the cancel button 702 by the first user, in response to the operation, the mobile phone 1 does not perform an operation of sending the QR code information to the second electronic device.
[0148] Optional, Figure 7 The reminder message 701 shown may be a pop-up on the running interface of the second application by the first electronic device in response to the startup operation after the first user starts the second application. Alternatively, the prompt information of the reminder message 701 may be displayed when the first electronic device displays other running interfaces, and in response to the triggering operation of the prompt information by the first user, the first electronic device displays the reminder message 701. Exemplarily, the prompt information of the reminder message 701 may be a message reminding that there is a new notification, or it may be a message in various forms such as an abbreviated message of the reminder message 701. The prompt information may include the content of the reminder message 701, or it may not include the content of the reminder message 701.
[0149] The above embodiment takes the first electronic device actively performing the operation of sending the QR code information as an example. In other embodiments, the first electronic device may also perform the operation of sending the QR code information based on the first user performing the QR code information sharing operation.
[0150] For example, the first electronic device is a mobile phone 1, and the second application is a team code scanning application. Figure 8 As shown in (1), mobile phone 1 displays the running interface 800 of the team code scanning application, which includes one or more created groups, such as group 1, group 2, group 3, group 4, etc. The first user can select one or more groups to send QR code information to the second electronic device in the selected group. Figure 8 As shown in (1), mobile phone 1 detects an operation such as a first user selecting group 1, and in response to the selection operation, mobile phone 1 sends the QR code information to the second electronic device in group 1. Alternatively, mobile phone 1 sends the QR code information to group 1, and correspondingly, the second electronic device in group 1 receives the QR code information through group 1.
[0151] Alternatively, mobile phone 1 detects an operation such as the first user selecting group 1, and responds to the operation, such as Figure 8 As shown in (2), mobile phone 1 first displays a button 801 for sharing QR code information. The first user can implement the sharing operation of QR code information through button 801. If mobile phone 1 detects a click operation of button 801 by the first user, in response to the operation, mobile phone 1 sends the QR code information to the second electronic device in group 1. Alternatively, mobile phone 1 sends the QR code information to group 1, and correspondingly, the second electronic device in group 1 receives the QR code information through group 1.
[0152] Optional, such as Figure 8 The operation interface 800 shown in (1) can be automatically popped up by the mobile phone 1 after the mobile phone 1 performs the code scanning operation. It can also be actively started by the first user after the mobile phone 1 performs the code scanning operation, such as by Figure 5 The team code scanning application icon 501 shown in (1) opens the operation interface 800, or opens the operation interface 800 through other shortcut buttons. Optionally, in this embodiment, before the first electronic device sends the QR code information to the second electronic device, the first electronic device may also output such as Figure 7 Reminder message 701 is shown.
[0153] In some embodiments, after receiving the QR code information from the first electronic device, the second electronic device can perform a parsing operation according to the QR code information and output a parsing result. For example, the implementation of the second electronic device outputting the parsing result can refer to the implementation of the first electronic device outputting the scan code result.
[0154] In some embodiments, the second electronic device may also send the analysis result to the first electronic device. Optionally, in addition to outputting its own scanning result, the first electronic device may also output the scanning status of the second electronic device. Exemplarily, the scanning status of the second electronic device may include which second electronic devices have successfully output the analysis result, the specific content of the output analysis result, which second electronic devices have not yet output the analysis result, which second electronic devices have passed verification, which second electronic devices have not passed verification, etc.
[0155] Exemplarily, the first electronic device can output the scanning status of the second electronic device through the first application and / or the second application. Specifically, the scanning status of the second electronic device can be output in the group included in the first application and / or the second application. Optionally, the group can be a group to which the second electronic device belongs, or a group for sharing QR code information. Of course, the first electronic device can also output the scanning status of the second electronic device through other operating interfaces of the first application and / or the second application, or other applications, and this application does not impose specific restrictions on this.
[0156] Take the case where the first electronic device outputs the code scanned by the second electronic device through the group included in the second application as an example. Fig. 9 A schematic diagram of an interface provided by an embodiment of the present application is shown. Fig. 9 As shown, the scanning status of the second electronic device includes: the second electronic device that has successfully output the scanning analysis result and the specific content of the output scanning analysis result, such as "Xiaohong's analysis result is: sign-in successful!", "Xiaolan's analysis result is: sign-in successful!", etc. The second electronic device that failed to pass the verification, such as "Xiao Li's analysis failed", etc. The first electronic device can also display the total number of team members, the number of people who successfully signed in, the information of people who successfully signed in, the number of people who failed to sign in, the information of people who failed to sign in, etc. Among them, the personnel information can include any combination of information such as name, name, elderly, or children.
[0157] In other embodiments, after receiving the QR code information from the first electronic device, the second electronic device may output a reminder message to remind the second user whether to receive the QR code information from the first electronic device. For example, the reminder message may be such as Fig.10 As shown in the reminder message 901 shown. Optionally, the reminder message 901 may also include a cancel button 902 and / or a confirmation button 903. The second electronic device detects the second user's click operation on the confirmation button 903, and in response to the operation, the second electronic device receives the QR code information from the first electronic device. Conversely, the second electronic device detects the second user's click operation on the cancel button 902, and in response to the operation, the second electronic device does not receive the QR code information from the first electronic device.
[0158] Likewise, Fig.10The reminder message 901 shown may be a pop-up on the running interface of the second application by the second electronic device in response to the startup operation after the second user starts the second application. Alternatively, the prompt information of the reminder message 901 may be displayed when the second electronic device displays other running interfaces, and in response to the triggering operation of the prompt information by the second user, the second electronic device displays the reminder message 901. Exemplarily, the prompt information of the reminder message 901 may be a message reminding that there is a new notification, or it may be a message in various forms such as an abbreviated message of the reminder message 901. The prompt information may include the content of the reminder message 901, or it may not include the content of the reminder message 901.
[0159] In some embodiments, before the second electronic device performs a code scanning operation according to the QR code information, the second electronic device may also determine whether to perform a code scanning operation based on the positioning information of the second electronic device. For example, when it is determined that the position of the second electronic device is within a preset range according to the positioning information, a parsing operation is performed. For example, the parsing operation is performed automatically. On the contrary, when it is determined that the position of the second electronic device is not within the preset range according to the positioning information, the parsing operation is not performed. Exemplarily, the preset range may refer to a range of n meters around the first electronic device, where n is greater than or equal to 0, and the specific value of n may be set by the developer according to actual needs. In this way, the code scanning operation is performed only when the position of the second electronic device is within the preset range, that is, the second electronic device that performs the code scanning operation has an actual code scanning demand. The second electronic device can be prevented from performing unnecessary code scanning operations, saving power consumption of the second electronic device.
[0160] Exemplarily, the second electronic device may obtain the positioning information through various positioning technologies such as global positioning system (GPS), ultra wideband (UWB), Wi-Fi, Bluetooth, etc. The embodiment of the present application does not impose any limitation on the manner in which the second electronic device obtains the positioning information.
[0161] Optionally, when the second electronic device determines that the position of the second electronic device is not within the preset range according to the positioning information, the second electronic device may also output a reminder message to remind the second user that the scanning operation cannot be performed because the position of the second electronic device is not within the preset range. In this way, the second user may adjust his own position according to the reminder message so that the position of the second electronic device is within the preset range, thereby enabling the second electronic device to perform the scanning operation based on the QR code information from the first electronic device.
[0162] The above embodiment takes the operation of the second application performing the QR code information sending and receiving as an example. In some embodiments, since the first user may use the first application to perform the code scanning operation, that is, the application performing the code scanning operation is different from the application performing the QR code information sending and receiving operation. Therefore, after performing the code scanning operation, the first application can send the acquired QR code information to the second application.
[0163] In some embodiments, the first user can also set which first applications can send the acquired QR code information to the second application after performing the code scanning operation. In other words, when the first application is a preset application, the acquired QR code information can be sent to the second application only after the first application performs the code scanning operation.
[0164] For example, the first electronic device is a mobile phone 1, and the first user sets a preset application through a second application, and the second application is a team scanning application. Fig.11 As shown, mobile phone 1 displays a running interface 1000 of the team code scanning application, which includes one or more first application options (such as application 1, application 2, application 3, etc.), and the first user can set one or more of the first applications as preset applications. If mobile phone 1 detects that the first user turns on the function button 1001 for starting the application 1 code scanning option, in response to the operation, mobile phone 1 sets application 1 as the preset application.
[0165] In some embodiments, the operation of sending and receiving the QR code information can also be directly performed by the first application, that is, the application that performs the code scanning operation is the same as the application that performs the QR code information sending and receiving operation. In other words, the function of the second application described in the embodiment of the present application can be directly embedded in the first application. For the implementation of the first application performing the QR code information sending and receiving operation, please refer to the above Figures 5 to 10 The relevant implementation described in the corresponding implementation method.
[0166] In some embodiments, only preset types of QR codes can support the operation of sending and receiving QR code information. In this embodiment, after performing the code scanning operation, the first electronic device determines whether the QR code is a preset type of QR code based on the acquired QR code information. If so, the first electronic device can send the QR code information to the second electronic device. If not, the first electronic device does not perform the operation of sending the QR code information to the second electronic device. In this way, the QR code information sent by the first electronic device to the second electronic device can meet the actual needs of the user, that is, the QR code scanned by the second electronic device is the QR code that the user actually needs to scan, meeting the actual needs of the user.
[0167] Optionally, the first electronic device may also output a reminder message to remind the first user that the current QR code is a QR code type that does not support QR code information sharing, etc.
[0168] Exemplarily, the preset types of QR codes may include check-in codes, admission codes, order codes, answer codes, etc. The preset types of QR codes may not include payment codes, payment collection codes, etc. The preset types of QR codes may be set by the developer according to actual needs.
[0169] For example, Fig.12 A schematic diagram of a code scanning method provided in an embodiment of the present application is shown. Fig.12 As shown, the method comprises the following steps:
[0170] S1101: In response to a first operation, a first electronic device scans a QR code, obtains QR code information corresponding to the QR code, and sends the QR code information to a second electronic device. Correspondingly, the second electronic device receives the QR code information from the first electronic device.
[0171] In some scenarios, the QR code may not be stored in the first electronic device, and the first electronic device may use a method such as Figure 4 , Figure 5 Scan the QR code as described above.
[0172] In other scenarios, the QR code may be stored in the first electronic device, such as the first electronic device takes a picture of the QR code through a camera and stores the captured QR code image in a photo album or the like. In this scenario, the first user may also call up a code scanning interface of the first electronic device and scan the stored QR code through the code scanning interface.
[0173] The two-dimensional code information can be obtained according to the two-dimensional code scanned by the first electronic device. Optionally, the two-dimensional code information can be used for the second electronic device to output the result of scanning the two-dimensional code described in step S1101.
[0174] In some embodiments, the first electronic device and the second electronic device may be electronic devices in the same group.
[0175] In some embodiments, when the operation of scanning the QR code is performed by a first application installed on the first electronic device, the QR code information can be obtained by the first application. This step can be specifically implemented as follows: the first application sends the QR code information to the second application installed on the first electronic device, and the second application installed on the first electronic device sends the QR code information to the second electronic device.
[0176] S1102. Output the scanning result corresponding to the scanned QR code.
[0177] For an introduction to the scanning results corresponding to scanning a QR code, please refer to the relevant introduction to the scanning results described above.
[0178] Optional, Fig.12 The method shown may further include step S1103 to step S1104.
[0179] S1103: The second electronic device performs a parsing operation according to the QR code information.
[0180] S1104: The second electronic device outputs the analysis result.
[0181] Optionally, the embodiment of the present application does not limit the execution order of step S1102 and step S1103, which may be executed successively or simultaneously.
[0182] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. In combination with the units and algorithm steps of each example described in the embodiment disclosed in this application, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and software. Whether a function is executed in a hardware or software-driven hardware manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the technical solution of the embodiment of the present application.
[0183] The present application is an embodiment that can divide the functional modules of the electronic device according to the above method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0184] like Fig.13 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 1300 can be used to implement the methods described in the above method embodiments. Exemplarily, the electronic device 1300 may include: a processing unit 1301 and a communication unit 1302.
[0185] In a possible example, the electronic device 1300 is Figure 1 Taking the first electronic device 100 as an example, the processing unit 1301 is used to support the electronic device 1300 to execute Fig.12And / or, the processing unit 1301 is further configured to support the electronic device 1300 in executing other steps executed by the first electronic device in the embodiment of the present application.
[0186] The communication unit 1302 is used to support the electronic device 1300 to execute Fig.12 The operation of sending the two-dimensional code information to the second electronic device in step S1101 in the embodiment of the present application. And / or, the communication unit 1302 is also used to support the electronic device 1300 to execute other steps executed by the first electronic device in the embodiment of the present application.
[0187] In another possible example, the electronic device 1300 is used as Figure 1 Taking the second electronic device 200 as an example, the processing unit 1301 is used to support the electronic device 1300 to execute Fig.12 And / or, the processing unit 1301 is further configured to support the electronic device 1300 in executing other steps executed by the second electronic device in the embodiment of the present application.
[0188] The communication unit 1302 is used to support the electronic device 1300 to execute Fig.12 The operation of receiving the two-dimensional code information from the first electronic device in step S1101 in the embodiment of the present application. And / or, the communication unit 1302 is also used to support the electronic device 1300 to execute other steps executed by the second electronic device in the embodiment of the present application.
[0189] Optional, Fig.13 The electronic device 1300 shown may further include a display unit 1303. The display unit 1303 may be used to output a scan result or a parsing result, etc. And / or, the display unit 1303 may also be used to support the electronic device 1300 in executing other steps executed by the electronic device in the embodiment of the present application.
[0190] Optional, Fig.13 The electronic device 1300 shown may also include a storage unit ( Fig.13 (not shown), the storage unit stores a program or instruction. When the processing unit 1301 executes the program or instruction, Fig.13 The electronic device 1300 shown can execute the method shown in the above method embodiment.
[0191] Fig.13 The technical effects of the electronic device 1300 shown can refer to the technical effects of the method shown in the above method embodiment, which will not be repeated here. Fig.13The processing unit 1301 involved in the electronic device 1300 shown can be implemented by a processor or a processor-related circuit component, which can be a processor or a processing module. The communication unit 1302 can be implemented by a transceiver or a transceiver-related circuit component, which can be a transceiver or a transceiver module. The display unit 1303 can be implemented by display screen-related components.
[0192] The present application also provides a chip system, such as Fig.14 As shown, the chip system includes at least one processor 1401 and at least one interface circuit 1402. The processor 1401 and the interface circuit 1402 can be interconnected via lines. For example, the interface circuit 1402 can be used to receive signals from other devices. For another example, the interface circuit 1402 can be used to send signals to other devices (such as processor 1401). Exemplarily, the interface circuit 1402 can read instructions stored in the memory and send the instructions to the processor 1401. When the instructions are executed by the processor 1401, the electronic device can execute the various steps performed by the electronic device in the above-mentioned embodiment. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiments of the present application.
[0193] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
[0194] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be separately provided with the processor, which is not limited in the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be provided on different chips. The present application does not specifically limit the type of memory and the arrangement of the memory and the processor.
[0195] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
[0196] It should be understood that each step in the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.
[0197] An embodiment of the present application further provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the method described in the above method embodiment.
[0198] An embodiment of the present application provides a computer program product, which includes: a computer program or instructions, when the computer program or instructions are executed on an electronic device or a computer, the electronic device or the computer executes the method described in the above method embodiment.
[0199] An embodiment of the present application provides a communication system, which includes a first electronic device and a second electronic device. The first electronic device and the second electronic device implement the method described in the above embodiment through interaction.
[0200] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store execution instructions, and when the device is running, the processor can execute the execution instructions stored in the memory so that the device executes the methods in the above-mentioned method embodiments.
[0201] Among them, the electronic device, storage medium, program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0202] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0203] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The various embodiments can be combined with each other or referenced to each other without conflict. The device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0204] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0205] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0206] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0207] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A code scanning method, It is characterized in that Applied to a first electronic device, the method includes: In response to the first operation, scanning the QR code, acquiring QR code information corresponding to the QR code, and sending the QR code information to the second electronic device; Output the scanning result corresponding to the scanned QR code.
2. The method according to claim 1, It is characterized in that The sending the two-dimensional code information to the second electronic device includes: In response to the first operation, the two-dimensional code information is automatically sent to the second electronic device.
3. The method according to claim 1 or 2, It is characterized in that The scanning of the QR code comprises: scanning the QR code through a first application; The sending the two-dimensional code information to the second electronic device includes: sending the two-dimensional code information to the second electronic device through a second application.
4. The method according to claim 3, It is characterized in that The method further comprises: In response to a second operation, creating a group through the second application, the group including a first user identifier and a second user identifier, the first user identifier corresponds to the first electronic device, and the second user identifier corresponds to the second electronic device; The sending the two-dimensional code information to the second electronic device includes: sending the two-dimensional code information to the second electronic device through the group.
5. The method according to claim 3 or 4, It is characterized in that The first application is the same as the second application.
6. The method according to claim 3 or 4, It is characterized in that The first application is different from the second application, and the first application obtains the QR code information according to the scanned QR code; The sending the two-dimensional code information to the second electronic device includes: The first application sends the QR code information to the second application; The second application sends the two-dimensional code information to the second electronic device.
7. The method according to any one of claims 1 to 6, It is characterized in that The two-dimensional code information includes at least one of a two-dimensional code link or a two-dimensional code image.
8. The method according to any one of claims 1 to 7, It is characterized in that The method further comprises: The parsing result of at least one second electronic device is output, where the parsing result is a result obtained by the second electronic device performing a parsing operation on the two-dimensional code information.
9. An electronic device, It is characterized in that The electronic device comprises a processor, a memory and a communication interface, wherein the memory and the communication interface are coupled to the processor, the communication interface is used to communicate with other devices, the memory is used to store computer program code, the computer program code comprises computer instructions, and the processor reads the computer instructions from the memory so that the electronic device executes the method as described in any one of claims 1 to 8.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium comprises a computer program, and when the computer program is executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 8.
11. A code scanning system, It is characterized in that comprising a first electronic device and a second electronic device; The first electronic device is used for: In response to the first operation, scanning the QR code, acquiring the QR code information corresponding to the QR code, and sending the QR code information to the second electronic device; outputting the scanning result corresponding to the scanned QR code; The second electronic device is used for: The two-dimensional code information is received from the first electronic device.
12. The system according to claim 11, It is characterized in that The first electronic device is specifically configured to automatically send the QR code information to the second electronic device in response to the first operation.
13. The system according to claim 11 or 12, It is characterized in that The first electronic device is specifically used for: The QR code is scanned by a first application, and the QR code information is sent to the second electronic device by a second application.
14. The system according to claim 13, It is characterized in that The first electronic device is further used to create a group through the second application in response to a second operation, the group including a first user identifier and a second user identifier, the first user identifier corresponds to the first electronic device, and the second user identifier corresponds to the second electronic device; The first electronic device is further configured to send the two-dimensional code information to the second electronic device through the group.
15. A system according to claim 13 or 14, It is characterized in that The first application is the same as the second application.
16. The system according to claim 13 or 14, It is characterized in that The first application is different from the second application, and the first application obtains the QR code information according to the scanned QR code; The first electronic device is specifically used for: Sending the QR code information to the second application through the first application; The two-dimensional code information is sent to the second electronic device through the second application.
17. The system according to any one of claims 11 to 16, It is characterized in that The two-dimensional code information includes at least one of a two-dimensional code link or a two-dimensional code image.
18. A system according to any one of claims 11 to 17, It is characterized in that The first electronic device is further used to output a parsing result of at least one second electronic device, where the parsing result is a result obtained by the second electronic device performing a parsing operation on the two-dimensional code information.
19. The system according to any one of claims 11 to 18, It is characterized in that The second electronic device is further used for: Performing a parsing operation according to the QR code information; Output the parsing results.
20. The system according to claim 19, It is characterized in that The second electronic device is specifically configured to automatically perform the parsing operation according to the two-dimensional code information.
21. The system according to any one of claims 11 to 20, It is characterized in that The second electronic device is specifically configured to receive the two-dimensional code information from the first electronic device through a second application.
22. The system according to any one of claims 11 to 21, It is characterized in that The second electronic device is further used to determine that the location of the second electronic device is within a preset range.
