Connection method and device based on NFC, equipment and storage medium
By sending target and response commands between NFC modules, electronic devices can quickly identify the other party and establish a wireless communication connection, solving the problems of complex connection processes and accidental card ejection in existing technologies, and improving device connection efficiency and intelligence.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2026-03-10
AI Technical Summary
In the existing technology, the process of establishing communication connections between electronic devices and other devices is complex, the connection efficiency is low, and the probability of cards being accidentally ejected is relatively high.
By sending a target command containing specified identification information through the NFC module of the first device, the second device identifies the device based on the information and sends a response command, thereby establishing a wireless communication connection. This simplifies the command interaction process, improves connection efficiency, and reduces the probability of accidental card ejection.
It enables efficient connectivity between devices, simplifies the transmission process of wireless communication connection information, reduces the probability of accidental card ejection, and improves connection efficiency and intelligence.
Smart Images

Figure CN121645561A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a connection method, apparatus, device and storage medium based on NFC. Background Technology
[0002] In related technologies, when electronic devices are close to other devices, based on the Near Field Communication (NFC) module on the electronic device and the NFC module on the other device, the electronic device can transmit wireless communication connection information with the other device, and then establish a communication connection based on the wireless communication connection information to achieve "one-touch connection" between the electronic device and the other device.
[0003] However, in practice, it has been found that the process of establishing communication connections between electronic devices and other devices is currently quite complex and the connection efficiency is low. Summary of the Invention
[0004] This application provides an NFC-based connection method, apparatus, device, and storage medium, which can improve the connection efficiency between devices.
[0005] A first aspect of this application provides an NFC-based connection method applied to a first device, the first device including a first NFC module, the method comprising:
[0006] The first NFC module sends a target instruction, which includes specified identification information, and the specified identification information is used to indicate the device identity of the first device.
[0007] Upon receiving a first response instruction from a second device, wireless communication connection information is transmitted with the second device; wherein, the first response instruction is sent by the second device upon receiving the target instruction and identifying the device identity of the first device based on the specified identification information;
[0008] A communication connection is established with the second device based on the wireless communication connection information.
[0009] A second aspect of this application provides an NFC-based connection device, the device being located on a first device, the first device including a first NFC module, the device comprising:
[0010] The instruction sending unit is configured to send a target instruction through the first NFC module, the target instruction including specified identification information, the specified identification information being used to indicate the device identity of the first device;
[0011] The information acquisition unit is used to transmit wireless communication connection information with the second device upon receiving a first response instruction sent by the second device; wherein the first response instruction is sent by the second device upon receiving the target instruction and identifying the device identity of the first device based on the specified identification information;
[0012] A connection establishment unit is used to establish a communication connection with the second device based on the wireless communication connection information.
[0013] A third aspect of the embodiments of this application provides an electronic device,
[0014] Memory containing executable program code;
[0015] and the processor coupled to the memory;
[0016] The processor calls the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method disclosed in the first aspect of the embodiments of this application.
[0017] A fourth aspect of this application provides a computer-readable storage medium having executable program code stored thereon, wherein when the executable program code is executed by a processor, it implements the method disclosed in the first aspect of this application.
[0018] The fifth aspect of this application discloses a computer program product that, when run on a computer, causes the computer to execute the method disclosed in the first aspect of this application.
[0019] The sixth aspect of this application discloses an application publishing platform for publishing computer program products, wherein when the computer program product is run on a computer, the computer executes the method disclosed in the first aspect of this application.
[0020] As can be seen from the above technical solutions, the embodiments of this application have at least the following advantages:
[0021] The first NFC module sends a target instruction, which includes designated identification information indicating the device identity of the first device; upon receiving a first response instruction from the second device, the first NFC module transmits wireless communication connection information with the second device; wherein the first response instruction is sent by the second device upon receiving the target instruction and identifying the device identity of the first device based on the designated identification information; and a communication connection is established with the second device based on the wireless communication connection information.
[0022] By implementing this method, the first device and the second device can identify each other through the interaction of the target command and the first response command. Based on this, the first device can directly transmit wireless communication connection information with the second device through the first NFC module, which simplifies the command interaction process between the first device and the second device before transmitting wireless communication connection information through the NFC module, thereby improving the connection efficiency between the devices. Attached Figure Description
[0023] Figure 1A This is a diagram illustrating the execution steps of the electronic device disclosed in this application at ISO / IEC 14443-3 layer;
[0024] Figure 1B This is a schematic diagram illustrating the application scenarios disclosed in the embodiments of this application;
[0025] Figure 2 This is a flowchart illustrating an NFC-based connection method disclosed in an embodiment of this application;
[0026] Figure 3 This is another flowchart illustrating the NFC-based connection method disclosed in the embodiments of this application;
[0027] Figure 4 This is a diagram illustrating the instruction interaction between the first and second devices, assuming the second device can parse the target instruction.
[0028] Figure 5 This is a diagram illustrating the instruction interaction between the first and second devices when the second device is unable to parse the target instruction.
[0029] Figure 6 This is a structural illustration of an NFC-based connection device disclosed in an embodiment of this application;
[0030] Figure 7 This is a structural illustration of a first electronic device disclosed in an embodiment of this application. Detailed Implementation
[0031] This application provides an NFC-based connection method, apparatus, device, and storage medium, which can improve the connection efficiency between devices.
[0032] To enable those skilled in the art to better understand the present application, the technical solutions of the embodiments of the present application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. All embodiments based on the present application should fall within the scope of protection of the present application.
[0033] It should be noted that, in this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.
[0034] "At least one" means one or more, while "more" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b, and c, where a, b, and c can be single or multiple.
[0035] In the embodiments of this application, the electronic device (first device or second device) may include general handheld screen electronic devices, such as mobile phones, smartphones, portable terminals, terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), laptops, notebooks, wireless broadband (Wibro) terminals, tablet computers (PCs), smart PCs, and in-vehicle computers, etc.
[0036] Electronic devices can also include wearable devices. Wearable devices are portable electronic devices that can be worn directly on the user's body or integrated into the user's clothing or accessories. Wearable devices are not just hardware devices; they can also achieve powerful intelligent functions through software support, data interaction, and cloud server interaction, such as computing, positioning, and alarm functions. They can also connect to mobile phones and various terminals. Wearable devices can include, but are not limited to, wrist-supported devices (such as watches, wristbands, etc.), foot-supported devices (such as shoes, socks, or other leg-wearing products), head-supported devices (such as glasses, helmets, headbands, etc.), as well as smart clothing, backpacks, canes, accessories, and other non-mainstream product forms.
[0037] Most electronic devices nowadays have NFC modules. Through NFC modules, electronic devices can achieve card reading functions (such as reading access cards, bank cards, or public transport cards), card emulation functions (such as emulating bank cards for payment, emulating access cards for access control, or emulating transportation cards for subway turnstiles), and "tap-to-connect" functions (such as two mobile phones can establish a connection by tapping them together via NFC to transfer photos or files).
[0038] In related technologies, the "tap-to-connect" connection between electronic devices and other devices is typically based on the ISO / IEC 14443 protocol. Specifically, the electronic device and other devices first execute the protocol process of ISO / IEC 14443-3 to determine the card type of the activated card on the other device. If the card type supports ISO / IEC 14443-4, the interaction between the electronic device and other devices enters the ISO / IEC 14443-4 layer. In the ISO / IEC 14443-4 layer, the electronic device and other devices then exchange instructions corresponding to the Application Identifier (AID) confirmation process to determine whether they can support the exchange of wireless connection information through the same NFC program. If they support it, they then exchange wireless communication connection information and establish a communication connection based on the wireless communication connection information.
[0039] The following is combined with Figure 1A This section describes the execution steps for electronic equipment at ISO / IEC 14443-3 level. For example... Figure 1A The following are included:
[0040] 101. The electronic device sends a card search command.
[0041] 102. The electronic device receives a response command in response to the card search command.
[0042] 103. Select the lowest anti-collision level for electronic devices.
[0043] It should be noted that after step 103, the electronic device can perform step 104 based on the lowest anti-collision level.
[0044] 104. Electronic devices execute bit-frame anti-collision loop.
[0045] It should be noted that after step 104, the electronic device can detect whether the unique identifier has been completely captured. If not, step 105 is executed; if yes, step 106 is executed.
[0046] 105. Add anti-collision levels to electronic devices.
[0047] It should be noted that after step 105, the electronic device can continue to execute step 104 with the increased anti-collision level.
[0048] 106. Response value of electronic device detection card.
[0049] 107. When the card selection response value indicates that the activation card supports the ISO / IEC 14443-4 layer protocol, the electronic device enters the ISO / IEC 14443-4 layer.
[0050] 108. When the card selection response value indicates that the activation card does not support the ISO / IEC 14443-4 layer protocol, the electronic device enters the Mifare process.
[0051] In summary, electronic devices require prolonged instruction exchanges with other devices to exchange wireless communication connection information, resulting in low connection efficiency between electronic devices and other electronic devices.
[0052] Furthermore, cards on other devices (access cards or public transport cards, etc.) typically "pop out" when entering the radio frequency field provided by the electronic device. However, during the "tap-to-connect" connection process between the electronic device and other devices, users often do not require other devices to "pop out" cards. In related technologies, whether other devices "pop out" cards depends on the AID confirmation process between the electronic device and the other device. Specifically, if other devices do not receive the AID command from the electronic device within a preset time, they determine that the electronic device cannot interact with them wirelessly through the same NFC program, and in this case, the other device "pops out" the card. If other devices receive the AID command from the electronic device within the preset time, they determine that the electronic device can interact with them wirelessly through the same NFC program, and in this case, the other device does not "pop out" the card. However, because the command interaction before the AID confirmation process is relatively complex and involves many communication commands, the probability of communication errors (such as command retransmission) is usually high, increasing the time consumption. This causes other devices to receive the AID command from the electronic device for longer than the preset time, leading to misjudgment and accidental card popping.
[0053] To address the aforementioned issues, embodiments of this application provide an NFC-based connection method, apparatus, device, and storage medium, which not only improves the connection efficiency between devices but also reduces the probability of accidental card ejection.
[0054] Figure 1BThis is a schematic diagram of an application scenario disclosed in the embodiments of this application. As shown in 1B, the schematic diagram includes a first device 10 and a second device 20. Both the first device 10 and the second device 20 have NFC modules. The first device 10 is configured as a card reader and acts as a card reader to provide a radio frequency field for the second device 20. The second device 20 is configured as a card device and acts as a card.
[0055] It should be noted that in some embodiments, the roles of the first device 10 and the second device 20 can be interchanged; that is, the first device 10 can be configured as a card device, and the second device 20 can be configured as a card reader. It is understood that... Figure 1B This is merely an illustration and is not intended to limit the functionality of the first device 10 and the second device 20.
[0056] The following is combined with Figure 1B The application scenario diagram shown illustrates the NFC-based connection method provided in this application embodiment: A first device 10 sends a target instruction via its first NFC module, including specified identification information indicating the device identity of the first device. Upon receiving the target instruction, a second device 20 identifies the device identity of the first device based on the specified identification information and sends a first response instruction to the first device 10. Upon receiving the first response instruction, the first device 10 transmits wireless communication connection information with the second device 20. Finally, the first device 10 and the second device 20 establish a communication connection based on the wireless communication connection information.
[0057] As can be seen, in the NFC-based connection method provided in this application embodiment, the first device 10 and the second device 20 can identify each other's identities through the interaction of target instructions and first response instructions. On this basis, the first device can directly transmit wireless communication connection information with the second device through the first NFC module, which simplifies the instruction interaction process between the first device 10 and the second device 20 before they interact to transmit wireless communication connection information through the NFC module, improves the transmission efficiency of wireless communication connection information, and is conducive to improving the connection efficiency between devices.
[0058] Furthermore, since the first device 10 and the second device 20 achieve mutual identification based on the interaction of the target instruction and the first response instruction, the second device can effectively avoid misjudging the identity of the first device, thereby reducing the probability of accidental card ejection.
[0059] The NFC-based connection method disclosed in this application will be described below with reference to specific implementation methods.
[0060] Please see Figure 2 , Figure 2This is a flowchart illustrating an NFC-based connection method disclosed in an embodiment of this application. Figure 2 The NFC-based connection method shown may include the following steps:
[0061] 201. The first device sends a target instruction through the first NFC module. The target instruction includes specified identification information, which is used to indicate the device identity of the first device.
[0062] The target instruction may refer to a communication instruction used to indicate the device identity of the first device. The specified identification information in the target instruction may be obtained by encoding the device identity of the first device and can be used to indicate the device identity of the first device.
[0063] It is understandable that when a target instruction carrying specified identification information is received by another device, the other device can identify the device identity of the first device based on the specified identification information in the target instruction.
[0064] In some embodiments, the specified identification information may include, but is not limited to, at least one of the following: numbers, letters, and special characters. For example, the specified identification information may be 0x55.
[0065] In this application embodiment, device identity may include, but is not limited to, device type and / or device brand. Device type refers to the category to which the device belongs, such as: mobile phone, tablet, smartwatch, or computer.
[0066] It should be noted that when the first device performs step 201, the first device is in card reading mode, that is, the first device acts as a card reader, provides an radio frequency field, and reads the information on the radio frequency card within the radio frequency field.
[0067] In some embodiments, the card reading mode of the first device may be a default setting or a user-intervention setting, and this application embodiment does not limit it.
[0068] When the card reader mode of the first device is set to user intervention, before step 201, the first device can detect a specified operation input by the user and, in response to the specified operation, set the first device to card reader mode. The specified operation may include, but is not limited to, voice operation, gesture operation, or touch operation.
[0069] It is understandable that the first device sending the target instruction through the first NFC module means that the first device broadcasts the target instruction within the radio frequency field provided by the first device through the first NFC module, that is, other devices within the radio frequency field can receive the target instruction.
[0070] 202. Upon receiving the target instruction, the second device identifies the device identity of the first device based on the specified identification information.
[0071] It should be noted that the second device also has an NFC module, which allows it to receive target commands. If the second device can receive the target commands, it indicates that it is within the radio frequency field provided by the first device, meaning the distance between the first and second devices is less than a distance threshold.
[0072] In this embodiment of the application, when the second device receives the target instruction, the second device can parse the target instruction to obtain the specified identification information, and then use the specified identification information to identify the device identity of the first device.
[0073] It is understandable that if both the first and second devices support the target data protocol, the second device can parse the target instructions and thus identify the device identity of the first device. Otherwise, the second device cannot parse the target instructions, and therefore cannot identify the device identity of the first device.
[0074] It should be noted that both the first and second devices can be devices whose NFC modules support the function of exchanging wireless connection information through the same NFC program. The NFC program can refer to a lightweight program running on a device equipped with an NFC module.
[0075] For example, the first device and the second device can be devices from the same manufacturer, or they can be devices from different manufacturers with a strategic cooperation agreement. This application does not limit the scope of the embodiments.
[0076] 203. The second device sends a first response command to the first device.
[0077] It is understandable that step 203 is performed by the second device after recognizing the device identity of the first device.
[0078] It should be noted that the second device sends the first response command to the first device in order to inform the first device that the device identity of the first device can be identified by the second device.
[0079] 204. Upon receiving the first response instruction, the first device transmits wireless communication connection information to the second device.
[0080] In this embodiment, the wireless communication connection information may include, but is not limited to, at least one of the following: Bluetooth connection information, Wi-Fi connection information, and hotspot information. Specifically, Bluetooth connection information may include a Bluetooth address and pairing code; Wi-Fi connection information may include a network name and password; and hotspot information may include a hotspot name and access password.
[0081] In this embodiment of the application, the process of transmitting wireless communication connection information between the first device and the second device may include: the second device simulating an NFC tag through an NFC program on the second device, wherein the NFC tag has wireless communication connection information pre-written in it; and the first device reading the NFC tag on the second device through an NFC program on the first device to obtain the wireless communication connection information.
[0082] In some embodiments, the second device may trigger the launch of the NFC program on the second device upon sending a first response instruction to the first device, and the first device may trigger the launch of the NFC program on the first device upon receiving the first response instruction.
[0083] Understandably, the first device can broadcast a target instruction including specified identification information within its provided radio frequency field. When the second device is within this radio frequency field, it can receive the target instruction. If the second device can parse the target instruction to obtain the specified identification information, the first device can determine that both the first and second devices' NFC modules support the same NFC program, and that they can exchange wireless connection information through this NFC program. Furthermore, after identifying the first device's identity using the specified identification information, the second device sends a first response instruction to the first device. Upon receiving the first response instruction, the first device can also determine that both the first and second devices' NFC modules support the same NFC program, and that they can exchange wireless connection information through this NFC program. Based on this, the first and second devices then trigger their respective NFC programs and use their respective NFC programs to exchange wireless communication connection information.
[0084] As can be seen, the first device and the second device achieve mutual identification through the interaction of the target command and the first response command. That is, it is determined that both of their NFC modules support the same NFC program, and through this NFC program, the two can exchange wireless connection information. On this basis, the first device and the second device can successfully exchange wireless communication connection information, which greatly simplifies the command interaction process before transmitting wireless communication connection information.
[0085] 205. The first device establishes a communication connection with the second device based on the wireless communication connection information.
[0086] As can be seen from the description below step 204, the communication connection information in the wireless communication connection information can be one or more types.
[0087] When the wireless communication connection information includes one type of communication connection information (such as Bluetooth connection information, Wi-Fi connection information, or hotspot information), the first device directly establishes a communication connection with the second device based on the communication connection information.
[0088] When the wireless communication connection information includes multiple communication connection information that do not conflict with each other, the first device can establish multiple communication connections with the second device based on these multiple communication connection information. For example, when the wireless communication connection information includes Bluetooth connection information and Wi-Fi connection information, the first device can establish Bluetooth connection and Wi-Fi connection with the second device based on the Bluetooth connection information and Wi-Fi connection information respectively.
[0089] In the case of multiple communication connection information, the first device can output multiple connection methods corresponding to the multiple communication connection information for the user to choose from, determine the connection method selected by the user from the multiple connection methods, and establish a communication connection with the second device according to the communication connection information corresponding to the connection method selected by the user.
[0090] It is understandable that, in the case of multiple communication connection information, the first device can output multiple connection methods corresponding to these multiple communication connection information, allowing the user to actively select a connection method. Then, based on the connection method selected by the user, a communication connection is established with the second device, which helps to meet the user's personalized needs.
[0091] In the case of multiple wireless communication connection information, the first device can determine the target connection information from the multiple connection information according to the preset selection rules, and establish a communication connection with the second device according to the target connection information; wherein, the preset selection rules may be related to at least one of the following: the current battery level of the first device, the current battery level of the second device, and the signal strength corresponding to at least one communication connection information.
[0092] For example, when the wireless communication connection information includes Bluetooth connection information and Wi-Fi connection information, the first device can determine the Wi-Fi signal strength corresponding to the Wi-Fi connection information, and establish a communication connection with the second device based on the Wi-Fi connection information if the Wi-Fi signal strength is greater than the signal strength threshold, and establish a communication connection with the second device based on the Bluetooth connection information if the Wi-Fi signal strength is less than or equal to the signal strength threshold.
[0093] It is understandable that when wireless communication connection information includes Bluetooth connection information and Wi-Fi connection information, if the Wi-Fi signal strength corresponding to the Wi-Fi connection information is relatively high, the first device establishes a Wi-Fi connection with the second device; if the Wi-Fi signal strength corresponding to the Wi-Fi connection information is relatively low, the first device establishes a Bluetooth connection with the second device. This is beneficial to improving the data transmission efficiency between the first device and the second device.
[0094] For example, when the wireless communication connection information includes Bluetooth connection information and Wi-Fi connection information, the first device can obtain the current battery level of the first device and the current battery level of the second device. If the current battery level of the first device and / or the current battery level of the second device is less than a battery threshold, a communication connection is established with the second device based on the Bluetooth connection information. If the current battery level of the first device and the current battery level of the second device are both greater than or equal to the battery threshold, a communication connection is established with the second device based on the Wi-Fi connection information.
[0095] Understandably, when the wireless communication connection information includes Bluetooth connection information and Wi-Fi connection information, if the current battery level of at least one of the first device and the second device is too low, the first device establishes a Bluetooth connection with the second device; if the current battery levels of both the first device and the second device are high, the first device and the second device establish a Wi-Fi connection, which helps to improve the communication duration between the first device and the second device.
[0096] By implementing the above method, the interaction process between the first and second devices before transmitting wireless communication connection information via the NFC module is simplified, improving the transmission efficiency of wireless communication connection information and thus enhancing the connection efficiency between devices. Furthermore, since the first and second devices first achieve mutual identification based on the interaction of the target command and the first response command, misjudgment of the first device's identity by the second device can be effectively avoided, thereby reducing the probability of accidental card ejection.
[0097] In some embodiments, the solution of this application can be obtained by modifying the instruction interaction process corresponding to the existing contactless IC card standard protocol. That is, the solution of this application can not only simplify the instruction interaction process between the first device and the second device before transmitting wireless communication connection information through the NFC module, and reduce the probability of accidental card ejection, but also be compatible with the instruction interaction process corresponding to the existing contactless IC card standard protocol, which is conducive to reducing development difficulty and facilitating maintenance.
[0098] In the embodiments of this application, the contactless IC card standard protocol may be ISO / IEC 14443 protocol, ISO / IEC 15693 protocol, or ISO / IEC 18092, etc., and the embodiments of this application are not limited thereto.
[0099] The following embodiments are mainly based on the ISO / IEC 14443 protocol. Figure 2 The interaction between the target instruction and the first response instruction can be an identification instruction added to the original ISO / IEC 1444-3 layer. For details, please refer to the following. Figure 3 .
[0100] Please see Figure 3 , Figure 3 This is another flowchart illustrating an NFC-based connection method disclosed in an embodiment of this application. Figure 3 The NFC-based connection method shown may include the following steps:
[0101] 301. The first device sends the target command through the first NFC module.
[0102] In some embodiments, the target instruction may further include at least one of the following: device model information of the first device, Bluetooth status information of the first device, and Wi-Fi status information of the first device. The device model information indicates the model of the device, the Bluetooth status information indicates the on / off state of the Bluetooth module of the first device, and the Wi-Fi status information indicates the on / off state of the Wi-Fi of the first device.
[0103] It should be noted that when the target instruction includes device model information, after parsing the target instruction, the second device can identify the device model of the first device based on the device model information of the first device, and then adjust the corresponding radio frequency parameters of the second device according to the device model of the first device. These radio frequency parameters may include, but are not limited to, transmit power and demodulation threshold, which is beneficial to improving the communication quality between the first device and the second device.
[0104] When the target instruction includes the Bluetooth status information and / or Wi-Fi status information of the first device, after parsing the target instruction, the second device can identify the Bluetooth status and / or Wi-Fi status of the first device based on the Bluetooth status information and / or Wi-Fi status information of the first device, and then remind the user to turn on the Bluetooth and / or Wi-Fi of the second device according to the identification result, or automatically turn on the Bluetooth and / or Wi-Fi of the second device, which helps to improve the intelligence of device interconnection and further improves the connection efficiency between the two.
[0105] For example:
[0106] If the Bluetooth of the first device is enabled, the second device can detect whether its Bluetooth is enabled. If it is not enabled, the second device can automatically enable its Bluetooth or output a prompt message indicating that the Bluetooth of the second device should be enabled.
[0107] If the Wi-Fi of the first device is enabled, the second device can detect whether its Wi-Fi is enabled. If it is not enabled, the second device can automatically enable its Wi-Fi or output a prompt message instructing the second device to enable its Wi-Fi.
[0108] With both Bluetooth and Wi-Fi enabled on the first device, the second device can detect whether Bluetooth and Wi-Fi are enabled. If neither is enabled, the second device can automatically enable Bluetooth and Wi-Fi, or output a prompt message instructing the second device to enable Bluetooth and Wi-Fi.
[0109] In some embodiments, the target instruction may consist of specified identification information, and the frame format of the corresponding target instruction may consist of 1 byte, that is, Byte0. For example, the content of Byte0 may be 0x55.
[0110] In some embodiments, the target instruction may consist of specified identification information and device model information, and the corresponding frame format of the target instruction may consist of 3 bytes, namely Byte0, Byte1, and Byte2. Byte0 indicates the specified identification information, and Byte1-Byte2 indicate device signal information.
[0111] For example, when the target instruction consists of specified identification information and device model information, the frame format of the target instruction can be seen in Table 1 below:
[0112]
[0113] Table 1
[0114] In some embodiments, the target instruction may consist of specified identification information, device model information, Bluetooth status information of the first device, and Wi-Fi status information of the first device. The frame format of the corresponding target instruction may consist of 4 bytes, namely Byte0, Byte1, Byte2, and Byte3. Among them, Byte0 indicates the specified identification information, Byte1-Byte2 indicate the device signal information, and Byte3 indicates the Bluetooth status information and Wi-Fi status information of the first device.
[0115] For example, when the target instruction can consist of specified identification information, device model information, Bluetooth status information of the first device, and Wi-Fi status information of the first device, the frame format of the target instruction can be seen in Table 2 below:
[0116]
[0117] Table 2
[0118] Since the target instruction is an instruction added at the ISO / IEC 14443-3 layer, the first device can send a card search instruction (Request Command, Type A, REQA) through the first NFC module in addition to sending the target instruction. REQA is a command in the ISO / IEC 14443-3 layer used to activate and identify radio frequency cards within the field strength.
[0119] In some embodiments, the first device may send the target instruction and REQA sequentially, that is, the first device sends the target instruction first and then sends the REQA; or, the first device may send the target instruction and REQA simultaneously.
[0120] In the case where the first device simultaneously sends the target command and REQA, there exists a scenario where, while the first device is sending both the target command and REQA, the second device is already within the first device's radio frequency field. That is, both the target command and REQA are received by the second device. The second device first parses the REQA and sends a second response command (Answer To Request, Type A, ATQA) to the first device in response to the REQA. At this point, the first device only receives the ATQA and does not receive the first response command, leading the first device to mistakenly believe that the second device is unable to parse the target command.
[0121] In the case where the first device sends the target command first and then the REQA, there is a scenario where the second device is not yet within the first device's radio frequency field when the first device sends the target command. In this case, the second device cannot receive the target command and therefore will not send the first response command to the first device. However, when the first device sends the REQA, the second device is already within the first device's radio frequency field, meaning that the second device can receive the REQA and send the ATQA to the first device. In this case, the first device only receives the ATQA and does not receive the first response command, leading the first device to mistakenly believe that the second device cannot parse the target command.
[0122] To avoid misjudgment by the first device in the above scenario, the first device can send the target command again through the first NFC module if it has not received the first response command but has received ATQA.
[0123] 302. Upon receiving the target instruction, the second device identifies the device identity of the first device based on the specified identification information.
[0124] For a description of step 302, please refer to the description of step 202 above, which will not be repeated here.
[0125] 303. The second device sends a first response command to the first device.
[0126] For a description of the first response command, please refer to the above description of the target command; it will not be repeated here.
[0127] 304. Upon receiving the first response instruction, the first device skips the PICC detection process and transmits wireless communication connection information to the second device.
[0128] In this embodiment, the PICC detection process is an instruction interaction process in ISO / IEC 14443-3 layer. The PICC detection process may include one or more of the following: a PICC discovery process, an anti-collision process, and a PICC type determination process. Specifically, the PICC discovery process may include instruction interaction between REQA and ATQA; the anti-collision process may include interaction between anti-collision instructions and unique identifiers (UIDs), and interaction between the select command (Select) and the select acknowledgment (Type A, SAK); the PICC type determination process may involve parsing the SAK sent by the selected PICC to determine whether the PICC supports ISO / IEC 14443-4 layer.
[0129] For example, if the selected PICC sends an SAK value of 0x20, then the selected PICC supports ISO / IEC 14443-4 layer; if the selected PICC sends an SAK value of 0x08, then the selected PICC does not support ISO / IEC 14443-4 layer.
[0130] Understandably, step 304 occurs when the second device can parse the target instruction. The first and second devices identify each other through the interaction of the target instruction and the first response instruction. That is, they determine that the other's NFC module supports the same NFC program, and through this NFC program, they can exchange wireless connection information. At this time, the instruction interaction between the first and second devices can skip the PICC detection process. That is, the first and second devices no longer need to continue the interaction of ISO / IEC 14443-3 layer instructions, but directly enter the ISO / IEC 14443-4 layer, trigger their respective NFC programs, and realize the transmission of wireless communication connection information through their respective NFC programs. This greatly simplifies the instruction interaction process before transmitting wireless communication connection information and helps to speed up the interaction of wireless communication connection information.
[0131] For example, when the second device can parse the target instruction, the instruction interaction diagram between the first device and the second device can be seen below. Figure 4 .
[0132] In some embodiments, the second device cannot parse the target instruction, meaning it cannot identify the device identity of the first device, and therefore will not send a first response instruction to the first device. In this case, the first device does not receive the first response instruction, and the first and second devices can continue the instruction interaction at ISO / IEC 14443-3 layer to complete the card reading process, achieving compatibility with existing card and device interaction processes on the market.
[0133] Specifically, if the first device does not receive the first response instruction, it sends a REQA through the first NFC module; if it receives an ATQA sent by the second device, it determines the card type activated by the second device; if the card type activated by the second device is the first type, it reads the information on the card activated by the second device based on the contactless IC card standard protocol; if the card type activated by the second device is the second type, it reads the information on the card activated by the second device based on card reading technology.
[0134] It should be noted that for the first device to determine the card type activated by the second device, it often needs to perform a PICC type determination process. That is, the first device parses the SAK value sent by the card activated by the second device and determines the card type activated by the second device based on the SAK value.
[0135] The first type refers to card types that support ISO / IEC 14443-4, and the SAK value sent by this type of card can be 0x20. The second type refers to card types that do not support ISO / IEC 14443-4, and the SAK value sent by this type of card can be 0x08.
[0136] Understandably, if the card type activated by the second device supports the ISO / IEC 14443-4 layer, then both the first and second devices can access the ISO / IEC 14443-4 layer. The first device reads the information on the card activated by the second device according to the ISO / IEC 14443-4 layer protocol. If the card type activated by the second device does not support the ISO / IEC 14443-4 layer, then neither the first nor the second device can access the ISO / IEC 14443-4 layer. The first device then reads the information on the card activated by the second device using card reading technology.
[0137] In some embodiments, the card reading technology described above may include, but is not limited to, Mifare, LEGIC, or FeliCa.
[0138] For example, in the case where the second device cannot parse the target instruction, the instruction interaction diagram between the first device and the second device can be seen below. Figure 5 .
[0139] 305. The first device establishes a communication connection with the second device based on the wireless communication connection information.
[0140] It should be noted that the explanation of step 305 can be found in the above explanation of step 205, and will not be repeated here.
[0141] By implementing the above method, an identification instruction (target instruction and first response instruction) is added to layer 3 of ISO / IEC 14443-3. When the second device can parse the target instruction, the first and second devices can mutually determine that their NFC modules support the same NFC program through the interaction of the target instruction and the first response instruction. Through this NFC program, they can exchange wireless connection information. At this time, the instruction interaction between the first and second devices can skip the PICC detection process and directly enter layer 4 of ISO / IEC 14443-4 to trigger their respective NFC programs and realize the transmission of wireless communication connection information through their respective NFC programs. This greatly simplifies the instruction interaction process before transmitting wireless communication connection information, which helps to speed up the interaction of wireless communication connection information and thus improves the connection efficiency between the first and second devices.
[0142] Please see Figure 6 , Figure 6 This application discloses an NFC-based connection device, which is located on a first device. The first device includes a first NFC module and may include an instruction sending unit 601, an information acquisition unit 602, and a connection establishment unit 603; wherein:
[0143] The instruction sending unit 601 is used to send a target instruction through the first NFC module. The target instruction includes specified identification information, which is used to indicate the device identity of the first device.
[0144] The information acquisition unit 602 is used to transmit wireless communication connection information with the second device when it receives a first response instruction sent by the second device; wherein the first response instruction is sent by the second device when it receives the target instruction and identifies the device identity of the first device according to the specified identification information;
[0145] The connection establishment unit 603 is used to establish a communication connection with the second device based on the wireless communication connection information.
[0146] In some embodiments, the method by which the instruction sending unit 601 sends a target instruction through the first NFC module may include: the instruction sending unit 601 sending a target instruction and a card search instruction through the first NFC module; and, if a second response instruction for the card search instruction is received from the second device, and the first response instruction is not received, sending the target instruction again through the first NFC module.
[0147] In some embodiments, the instruction sending unit 601 is further configured to send a card search instruction via the first NFC module if a first response instruction sent by the second device is not received; and if a second response instruction sent by the second device for the card search instruction is received, determine the card type activated by the second device; and if the card type is a first type, read the information on the card activated by the second device based on the contactless IC card standard protocol; and if the card type is a second type, read the information on the card activated by the second device based on card reading technology.
[0148] In some embodiments, the method by which the information acquisition unit 602 transmits wireless communication connection information with the second device upon receiving a first response instruction sent by the second device may include:
[0149] The information acquisition unit 602 is used to skip the PICC detection process and transmit wireless communication connection information with the second device when it receives a first response instruction sent by the first device; wherein the PICC detection process includes one or more of the following: PICC discovery process, anti-collision process, and PICC type determination process.
[0150] In some embodiments, the target instruction further includes at least one of the following: device model information of the first device, Bluetooth status information of the first device, and Wi-Fi status information of the first device.
[0151] In some embodiments, the wireless communication connection information includes Bluetooth connection information and / or Wi-Fi connection information.
[0152] In some embodiments, the wireless communication connection information includes the Bluetooth connection information and the Wi-Fi connection information, and the connection establishment unit 603 is used to establish a communication connection with the second device based on the wireless communication connection information in a manner that may specifically include:
[0153] The connection establishment unit 603 is configured to determine the Wi-Fi signal strength corresponding to the Wi-Fi connection information; and, if the Wi-Fi signal strength is greater than a signal strength threshold, establish a communication connection with the second device based on the Wi-Fi connection information; and, if the Wi-Fi signal strength is less than or equal to the signal strength threshold, establish a communication connection with the second device based on the Bluetooth connection information.
[0154] Please see Figure 7 , Figure 7 This is a structural illustration of the first device disclosed in an embodiment of this application. For example... Figure 7 The first device shown may include components such as a processor 701, a memory 702, a display unit 703, an input unit 704, a sensor 705, and an audio circuit 706.
[0155] The processor 701 is the control center of the first device. It connects various parts of the first device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 702, and by calling data stored in the memory 702, it performs various functions and processes data, thereby providing overall monitoring of the first device. Optionally, the processor 701 may include one or more processing units; optionally, the processor 701 may integrate an application processor, which mainly handles operating devices, user interfaces, and application programs. Of course, it may also include other processors, which are not listed here.
[0156] The memory 702 can be used to store software programs and modules. The processor 701 executes various functional applications and data processing of the first device by running the software programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area. The program storage area may store applications required for operating the device and at least one function (such as sound playback function, image playback function, etc.); the data storage area may store data created according to the use of the first device (such as audio data, telephone book, etc.). In addition, the memory 702 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0157] The display unit 703 can be used to display information input by the user or information provided to the user, as well as various menus of the first device. The display unit 703 may include a display panel, optionally configured as a liquid crystal display (LCD), organic light-emitting diode (OLED), or similar device. Further, a touch panel may cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 701 to determine the type of touch event. Subsequently, the processor 701 provides corresponding visual output on the display panel based on the type of touch event. The touch panel and the display panel are not located on the same surface. Figure 7 As shown above, the touch panel and the display panel can be used as two separate components to realize the input and output functions of the first device, or the touch panel and the display panel can be integrated to realize the input and output functions of the first device.
[0158] Input unit 704 can be used to receive input numerical or character information and generate key signal inputs related to user settings and function control of the first device. Specifically, input unit 704 may include a touch panel and other input devices. A touch panel, also known as a touchscreen, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel) and drive corresponding connection devices according to a pre-set program. Furthermore, touch panels can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel, input unit 704 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of function keys (such as volume control buttons, power buttons, etc.), trackballs, joysticks, etc.
[0159] The first device may also include at least one sensor 705, such as a magnetometer, a gyroscope sensor, a motion sensor, and other sensors. Specifically, the magnetometer is used to determine the orientation of the first device, and the gyroscope sensor can be used to determine the motion posture of the first device, which can be used for image stabilization, navigation, and motion-sensing game scenarios. As a type of motion sensor, the accelerometer can detect the magnitude of acceleration in various directions, and when stationary, it can detect the magnitude and direction of gravity, which can be used for applications that identify the posture of the first device, such as landscape / portrait switching, related games, magnetometer posture calibration, etc. Other sensors that may be configured on the first device, such as pressure gauges, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0160] The audio circuit 706 may include a speaker and a microphone, providing an audio interface between the user and the first device. The audio circuit 706 can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by the audio circuit 706, converted back into audio data, and output to the processor 701 for processing. The audio data is then transmitted via a video circuit to, for example, another device, or output to the memory 702 for further processing.
[0161] Although not shown, the first device may also include a power supply and a camera. Optionally, the camera may be positioned in the front or rear of the first device, and this application embodiment does not limit this.
[0162] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the first device. In other embodiments of this application, the first device may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0163] In this embodiment of the application, the processor 701 also has the following functions:
[0164] The first NFC module sends a target instruction, which includes specified identification information, and the specified identification information is used to indicate the device identity of the first device.
[0165] Upon receiving a first response instruction from a second device, wireless communication connection information is transmitted with the second device; wherein, the first response instruction is sent by the second device upon receiving the target instruction and identifying the device identity of the first device based on the specified identification information;
[0166] A communication connection is established with the second device based on the wireless communication connection information.
[0167] In this embodiment of the application, the processor 701 also has the following functions:
[0168] Send the target command and card search command through the first NFC module;
[0169] If a second response instruction for the card search instruction is received from the second device, but the first response instruction is not received, the target instruction is sent again through the first NFC module.
[0170] In this embodiment of the application, the processor 701 also has the following functions:
[0171] If no first response command is received from the second device, a card search command is sent through the first NFC module;
[0172] If a second response command is received from the second device in response to the card search command, the type of card activated by the second device is determined.
[0173] If the card type is the first type, then based on the contactless IC card standard protocol, the information on the card activated by the second device is read;
[0174] If the card type is the second type, then based on card reading technology, the information on the card activated by the second device is read.
[0175] In this embodiment of the application, the processor 701 also has the following functions:
[0176] Upon receiving a first response instruction from the first device, the PICC detection process is skipped, and wireless communication connection information is transmitted with the second device; wherein, the PICC detection process includes one or more of the following: PICC discovery process, anti-collision process, and PICC type determination process.
[0177] In this embodiment of the application, the target instruction further includes at least one of the following: device model information of the first device, Bluetooth status information of the first device, and Wi-Fi status information of the first device.
[0178] In this embodiment of the application, the wireless communication connection information includes Bluetooth connection information and / or Wi-Fi connection information.
[0179] In this embodiment, the wireless communication connection information includes the Bluetooth connection information and the Wi-Fi connection information, and the processor 701 also has the following functions:
[0180] Determine the Wi-Fi signal strength corresponding to the Wi-Fi connection information;
[0181] If the Wi-Fi signal strength is greater than the signal strength threshold, a communication connection is established with the second device based on the Wi-Fi connection information;
[0182] If the Wi-Fi signal strength is less than or equal to the signal strength threshold, a communication connection is established with the second device based on the Bluetooth connection information.
[0183] This application discloses a computer-readable storage medium storing executable program code thereon. When the executable program code is executed by a processor, it implements the method executed by the first device in this application.
[0184] This application discloses a computer program product that, when run on a computer, enables the computer to implement the method executed by the first device in this application.
[0185] This application discloses an application publishing platform for publishing computer program products. When the computer program product is run on a computer, the computer implements the method executed by the first device in this application.
[0186] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium, storage medium, and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0187] It should be understood that the phrases "one embodiment," "an embodiment," or "some embodiments" mentioned throughout the specification mean that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment," "in one embodiment," or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely for descriptive purposes and do not represent the superiority or inferiority of the embodiments. The descriptions of the various embodiments above tend to emphasize the differences between the various embodiments; their similarities or commonalities can be referred to mutually, and for the sake of brevity, they will not be repeated here.
[0188] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three kinds of relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist simultaneously, and object B exists alone.
[0189] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0190] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or modules can be electrical, mechanical, or other forms.
[0191] The modules described above as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules. They may be located in one place or distributed across multiple network units. Some or all of the modules may be selected to achieve the purpose of this embodiment according to actual needs.
[0192] In addition, each functional module in the various embodiments of this application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the integrated modules can be implemented in hardware or in the form of hardware plus software functional units.
[0193] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0194] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0195] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0196] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0197] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.
[0198] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A near field communication, NFC, based connection method, characterized by The method is applied to a first device, the first device comprising a first NFC module, and the method comprising: sending, by the first NFC module, a target instruction, the target instruction comprising specified identification information, the specified identification information being used to indicate a device identity of the first device; in a case where a first response instruction sent by a second device is received, transmitting, with the second device, wireless communication connection information; wherein the first response instruction is sent by the second device in a case where the second device receives the target instruction and identifies the device identity of the first device according to the specified identification information; establishing a communication connection with the second device according to the wireless communication connection information.
2. The method of claim 1, wherein, The sending, by the first NFC module, of the target instruction comprises: sending, by the first NFC module, the target instruction and a card searching instruction; in a case where a second response instruction sent by a second device in response to the card searching instruction is received and the first response instruction is not received, sending the target instruction again by the first NFC module.
3. The method of claim 1, wherein, The method further comprises: in a case where the first response instruction sent by the second device is not received, sending, by the first NFC module, a card searching instruction; if the second response instruction sent by the second device in response to the card searching instruction is received, determining a card type activated by the second device; if the card type is a first type, reading information on a card activated by the second device based on a contactless IC card standard protocol; if the card type is a second type, reading information on the card activated by the second device based on a card reading technology.
4. The method of claim 1, wherein, The transmitting, with the second device, of the wireless communication connection information in a case where the first response instruction sent by the second device is received comprises: in a case where the first response instruction sent by the first device is received, skipping a detection PICC process and transmitting, with the second device, the wireless communication connection information; wherein the detection PICC process comprises one or more of a PICC discovery process, an anti-collision process and a PICC type determination process.
5. The method of claim 1, wherein, The target instruction further comprises at least one of the following: device model information of the first device, Bluetooth state information of the first device, and Wi-Fi state information of the first device.
6. The method of claim 1, wherein, The wireless communication connection information comprises Bluetooth connection information and / or Wi-Fi connection information.
7. The method of claim 6, wherein, The wireless communication connection information comprises the Bluetooth connection information and the Wi-Fi connection information, and the establishing of the communication connection with the second device according to the wireless communication connection information comprises: determining a Wi-Fi signal strength corresponding to the Wi-Fi connection information; in a case where the Wi-Fi signal strength is greater than a signal strength threshold, establishing the communication connection with the second device according to the Wi-Fi connection information; in a case where the Wi-Fi signal strength is less than or equal to the signal strength threshold, establishing the communication connection with the second device according to the Bluetooth connection information.
8. A NFC based connection device, characterized in that, The apparatus is on a first device, the first device comprising a first NFC module, and the apparatus comprises: The instruction sending unit is configured to send a target instruction through the first NFC module, the target instruction comprising specified identification information, the specified identification information being used to indicate the device identity of the first device; The information obtaining unit is configured to, in a case where a first response instruction sent by a second device is received, transmit wireless communication connection information with the second device; wherein the first response instruction is sent by the second device in a case where the second device receives the target instruction and identifies the device identity of the first device according to the specified identification information; The connection establishing unit is configured to establish a communication connection with the second device according to the wireless communication connection information.
9. An electronic device, comprising: comprising: a memory storing executable program code; and a processor coupled with the memory; the processor invokes the executable program code stored in the memory, and the executable program code, when executed by the processor, causes the processor to implement the method of any one of claims 1-7.
10. A computer-readable storage medium having stored thereon an executable program code, characterized in that, the executable program code, when executed by the processor, implements the method of any one of claims 1-7.