Method for acquiring information of a collecting device and terminal
By establishing an NFC connection channel with the acquiring device through the NFC card emulation function, the problems of slow information exchange speed and complicated operation between merchants and customers are solved, and fast and secure information transmission is achieved.
Patent Information
- Application Number
- CN202210625024.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-02
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2042-06-02
AI Technical Summary
Information exchange between merchants and customers is slow and complex, especially when merchants need to connect to third-party platforms or build their own platforms. The development and usage costs are high, and there are data barriers between different payment software and systems, making it impossible to quickly send receipts, invoices and other information.
By using the NFC card emulation function, an NFC connection channel is established with the acquiring device to receive wireless communication data and establish a wireless connection channel, thereby obtaining the display information of the acquiring device.
It enables fast and simple information exchange between merchants and customers, and ensures high data transmission security. Users only need to perform NFC sensing to obtain the acquiring device information.
Smart Images

Figure CN115002699B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of information transmission, in particular to a method for obtaining information of a collecting device and a terminal. BACKGROUND
[0002] With the continuous development of the Android system, the Android system is applied to more and more devices, such as mobile phones, POS machines, cash registers and the like. At present, the numerous cash register devices of merchants are based on the Android system, and the mobile phones of users are also mostly the Android system; in actual scenarios, the demand for information exchange between merchants and customers is increasing, such as the user needing to obtain discount activity information, queuing information, receipt information, invoice information, commodity information and the like from the merchant. The interaction of these merchant-customer information is usually in an online manner, and the merchant needs to access various platforms, and the customer obtains the information through attention to the corresponding public number, applet or other platforms such as Meituan; the merchant needs to access third-party platforms or self-built platforms, and the development cost or use cost is usually high; and in an offline manner, the current merchant-customer information exchange is usually only through the channels for interconnection between devices provided by the Android system, such as wifi-ap, wifiP2P, Bluetooth, NFC, local area network and the like; however, these traditional interconnection manners have not small defects in terms of the convenience of use of the user or the convenience of development of the developer.
[0003] In addition, the collecting software and system used by the merchant are usually provided by different collecting institutions or banks, and different applications and systems will exist data barriers, and these platforms usually do not provide the function of quickly sending the information such as the receipt, invoice and consumption record to the mobile phone of the customer; usually, the user is given the information in the form of receipt printing when the user needs it. Therefore, the information exchange between the merchant and the customer has the problems of slow speed and complex operation. SUMMARY
[0004] The technical problem to be solved by the present application is to provide a method for obtaining information of a collecting device and a terminal, which can improve the information exchange speed between the merchant and the customer and simplify the information exchange operation.
[0005] In order to solve the above technical problems, the technical scheme adopted by the present application is as follows:
[0006] A method for obtaining information of a collecting device, comprising the steps of:
[0007] establishing an NFC connection channel based on an application identifier between the NFC card simulation function and the collecting device;
[0008] receiving wireless communication data returned by the collecting device through the NFC connection channel, and establishing a wireless connection channel according to the wireless communication data;
[0009] Receive the display information collected by the acquirer from the output node through the wireless connection channel.
[0010] To solve the above technical problems, another technical solution adopted by the present application is:
[0011] A terminal for acquiring acquirer information, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0012] An NFC connection channel is established between the terminal and the acquirer based on the application identifier through the NFC card simulation function;
[0013] Wireless communication data returned by the acquirer is received through the NFC connection channel, and a wireless connection channel is established based on the wireless communication data;
[0014] The display information collected by the acquirer from the output node is received through the wireless connection channel.
[0015] The present application has the beneficial effect that an NFC connection channel is established between the terminal and the acquirer through the NFC card simulation function, and wireless communication data is transmitted through the NFC connection channel, so that other wireless connection channels are quickly established through the NFC function. The acquirer collects display information from the output node, and the user device receives the display information sent by the acquirer through the wireless connection channel. In this way, the user only needs to perform NFC induction to obtain the display information sent by the acquirer, and the information interaction speed is fast and the operation is simple for the user. BRIEF DESCRIPTION OF DRAWINGS
[0016] Figure 1 A flowchart of a method for acquiring acquirer information according to an embodiment of the present application;
[0017] Figure 2 A schematic diagram of a terminal for acquiring acquirer information according to an embodiment of the present application;
[0018] Figure 3 A model schematic diagram of a method for acquiring acquirer information according to an embodiment of the present application;
[0019] Figure 4 A timing diagram of a method for acquiring acquirer information according to an embodiment of the present application;
[0020] LABEL EXPLANATION:
[0021] 1. A terminal for acquiring acquirer information; 2. a memory; 3. a processor. DETAILED DESCRIPTION
[0022] To describe the technical solutions in the present application, the purposes achieved and the effects in detail, the following describes the present application with reference to the accompanying drawings.
[0023] Please refer to Figure 1 The embodiment of the present application provides a method for obtaining information of a collecting device, comprising the following steps:
[0024] An NFC connection channel is established between the NFC card simulation function and the collecting device based on an application identifier.
[0025] Wireless communication data returned by the collecting device is received through the NFC connection channel, and a wireless connection channel is established according to the wireless communication data.
[0026] The display information collected from the output node by the collecting device is received through the wireless connection channel.
[0027] From the above description, the present application has the following beneficial effects: an NFC connection channel is established between the NFC card simulation function and the collecting device, and wireless communication data is transmitted through the NFC connection channel, so that other wireless connection channels are quickly established through the NFC function. The display information is collected from the output node by the collecting device, and the user device receives the display information sent by the collecting device through the wireless connection channel. In this way, the user only needs to perform NFC induction to obtain the display information sent by the collecting device, and the information interaction speed is fast and the operation is simple for the user.
[0028] Further, the display information collected from the output node by the collecting device through the wireless connection channel comprises:
[0029] A configuration information display requirement is sent to the collecting device.
[0030] The display information found by the collecting device according to the print ID is received through the wireless connection channel, and the print ID is obtained from the output node according to the information display requirement.
[0031] From the above description, the user can configure the information display requirement and send the requirement to the collecting device, and the collecting device selects the print result of the corresponding print ID from the output node according to the information display requirement, so as to ensure the flexibility of the user to obtain the information of the collecting device.
[0032] Further, the display information collected from the output node by the collecting device through the wireless connection channel further comprises:
[0033] The data type of the display information is obtained.
[0034] If the display information is of the encrypted data type, a PIN code generated by the acquirer device is received, a session key is generated using the PIN code and a key agreement protocol, and the display information transmitted by the acquirer device is received according to the session key;
[0035] If the display information is of the preset data type, when a data transmission request is sent to the acquirer device, the IP address of the data transmission request is checked by the acquirer device, and if the IP address is legal, the display information transmitted by the acquirer device is received.
[0036] As described above, the key transmission of data or the IP authentication during data transmission according to the data type can improve the security of data transmission.
[0037] Further, the NFC card simulation function and the acquirer device establish an NFC connection channel based on an application identifier, which includes:
[0038] A preset application identifier is set with the acquirer device in advance, the acquirer device judges whether the received NFC card information contains the preset application identifier, and if so, the NFC connection channel is established using the preset application identifier.
[0039] As described above, the NFC connection channel is established through the application identifier, which facilitates the subsequent verification of the data sent by the acquirer device through the application identifier, and improves the reliability of data transmission.
[0040] Further, the NFC connection channel receives wireless communication data returned by the acquirer device, and a wireless connection channel is established according to the wireless communication data, which includes:
[0041] The NFC connection channel receives wireless communication data returned by the acquirer device, and the communication data with the highest priority is selected from the wireless communication data according to a preset priority, the wireless communication data including WiFi information, Bluetooth information, Ethernet information, and NFC information.
[0042] The wireless connection channel is established according to the communication data with the highest priority.
[0043] As described above, the data required for establishing the wireless connection channel is transmitted through the NFC connection channel, and the wireless connection channel is established according to the priority when the wireless connection channel is established, which can improve the efficiency of establishing the wireless connection channel.
[0044] Please refer to Figure 2 Another embodiment of the present application provides a terminal for obtaining acquirer device information, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the following steps when executing the computer program:
[0045] Simulate NFC card function to establish NFC connection channel with the acquirer device based on application identification;
[0046] Receive wireless communication data returned by the acquirer device through the NFC connection channel, and establish a wireless connection channel according to the wireless communication data;
[0047] Receive the display information collected by the acquirer device from the output node through the wireless connection channel.
[0048] From the above description, the NFC connection channel is established with the acquirer device through the NFC card simulation function, and the wireless communication data is transmitted through the NFC connection channel, so that other wireless connection channels are quickly established through the NFC function. The acquirer device collects display information from the output node, and the user device receives the display information sent by the acquirer device through the wireless connection channel. In this way, the user only needs to perform NFC induction to obtain the display information sent by the acquirer device, and the information interaction speed is fast and the operation is simple for the user.
[0049] Further, receiving the display information collected by the acquirer device from the output node through the wireless connection channel comprises:
[0050] Configure information display requirements, and send the information display requirements to the acquirer device;
[0051] Receive the display information found by the acquirer device according to the print ID, and the print ID is obtained from the output node according to the information display requirements.
[0052] From the above description, the user can configure information display requirements and send the requirements to the acquirer device. The acquirer device selects the print result of the corresponding print ID from the output node according to the information display requirements, so as to ensure the flexibility of the user to obtain the information of the acquirer device.
[0053] Further, receiving the display information collected by the acquirer device from the output node through the wireless connection channel further comprises:
[0054] Obtain the data type of the display information;
[0055] If the display information is an encrypted data type, receive the PIN code generated by the acquirer device, generate a session key using the PIN code and a key negotiation protocol, and receive the display information transmitted by the acquirer device according to the session key;
[0056] If the display information is a preset data type, when sending a data transmission request to the acquirer device, check whether the IP address of the data transmission request is legal through the acquirer device. If yes, receive the display information transmitted by the acquirer device.
[0057] From the above description, according to the data type selection, the data is transmitted by the key or the IP authentication is performed during the data transmission, so that the security of the data transmission can be improved.
[0058] Further, the NFC card simulation function and the application identifier based NFC connection channel establishment with the collecting device include:
[0059] The preset application identifier is set in advance with the collecting device, and the collecting device judges whether the received NFC card information contains the preset application identifier, if yes, the NFC connection channel is established by using the preset application identifier.
[0060] From the above description, the NFC connection channel is established by the application identifier, which facilitates the subsequent verification of the data sent by the collecting device through the application identifier, and improves the reliability of the data transmission.
[0061] Further, the wireless communication data returned by the collecting device is received through the NFC connection channel, and the wireless connection channel is established according to the wireless communication data.
[0062] The wireless communication data returned by the collecting device is received through the NFC connection channel, and the communication data with the highest priority is selected from the wireless communication data according to the preset priority, and the wireless communication data includes WiFi information, Bluetooth information, Ethernet information and NFC information.
[0063] The wireless connection channel is established according to the communication data with the highest priority.
[0064] From the above description, the data required for establishing the wireless connection channel is transmitted through the NFC connection channel, and the wireless connection channel is established according to the priority when the wireless connection channel is established, so that the efficiency of the wireless connection channel establishment can be improved.
[0065] The above-mentioned method and terminal for obtaining the information of the collecting device are suitable for the scene that the customer needs to quickly and conveniently obtain the collecting data and other information from the merchant terminal, and the following will be described through specific implementation manners.
[0066] Embodiment one
[0067] Please refer to Figure 1 , Figure 3 and Figure 4 , a method for obtaining the information of the collecting device, including the steps of:
[0068] S1, the NFC connection channel is established with the collecting device based on the application identifier through the NFC card simulation function.
[0069] Specifically, the preset application identifier is set in advance with the acquirer device, the acquirer device judges whether the received NFC card information contains the preset application identifier, if yes, the NFC connection channel is established using the preset application identifier.
[0070] In the embodiment, the merchant acquirer device is terminal A, and the user mobile terminal is terminal B.
[0071] Specifically, the application layer of terminal A calls the device discovery interface provided by the ad hoc network adaptation service according to the business needs, and waits for the discovery of the target device; the ad hoc network service is started when the user application binds the service, or is started by listening to the system boot broadcast.
[0072] The ad hoc network service of terminal A reads the IP and port of terminal A, including the IP and port of WiFi and local area network, Bluetooth address and port, which are ready to be transmitted to terminal B; and receives the calling request of the application layer of terminal A, uses the Android native NFC interface to start the NFC card reading function, and waits for the card reading of terminal B.
[0073] The ad hoc network service of terminal B listens to the system startup broadcast, and the ad hoc network service uses the Android native NFC card simulation function to simulate terminal B as an NFC card.
[0074] When terminal B approaches terminal A, terminal A reads terminal B simulated as an NFC card, and terminal B and terminal A pre-specify AID (application identifier), when terminal A reads terminal B simulated as an NFC card and the AID is the specified AID, terminal A sends the IP and port, Bluetooth address and other information of terminal A to terminal B through the NFC channel.
[0075] After terminal B receives the NFC information sent by terminal A, the specified AID is checked, and if the check is passed, the terminal information and IP address sent by terminal A through the NFC channel are received.
[0076] S2, receiving wireless communication data returned by the acquirer device through the NFC connection channel, and establishing a wireless connection channel according to the wireless communication data.
[0077] Specifically, the wireless communication data returned by the acquirer device is received through the NFC connection channel, and the communication data with the highest priority is selected from the wireless communication data according to the preset priority, the wireless communication data including WiFi information, Bluetooth information, Ethernet information and NFC information;
[0078] The wireless connection channel is established according to the communication data with the highest priority.
[0079] In the embodiment, the ad hoc network service of the terminal B decides the optimal connection channel according to the WiFi information, the Bluetooth information, the Ethernet information and the NFC information sent by the terminal A; in some embodiments, the terminal A can also send the USB port information to the terminal B.
[0080] The network is established according to the network data available to the terminal A and the terminal B, and the priorities from high to low are: USB communication, Bluetooth network, WiFi P2P network, WiFi AP network and NFC network.
[0081] When the used network mode is unreachable, the information of the terminal A is reacquired, and the optimal connection channel is redecided.
[0082] After the terminal A and the terminal B are successfully networked, the device interconnection channel is established, and the service interaction data required by subsequent applications can be transmitted through the established channel.
[0083] S3, receiving the display information collected from the output node by the receiving device through the wireless connection channel.
[0084] Specifically, the information display requirement is sent to the receiving device according to the configuration information display requirement.
[0085] The display information found by the receiving device according to the print ID is received through the wireless connection channel, and the print ID is obtained from the output node according to the information display requirement.
[0086] In the embodiment, according to the needs of the user, the user edits or selects the data to be sent in the application side, such as queuing information, commodity information and preferential information; in some embodiments, the merchant can select the data to be sent in the APP of the terminal A, and transmit the data to the terminal B through the device interconnection channel, and the APP of the terminal B receives and displays the data.
[0087] Specifically, after the payment application in the terminal A completes the receiving process of the customer, the printer of the POS and the cash register will print the receipt ticket. The thread saves the print data list and the corresponding print ID every time it prints. When the underlying print callback returns, it returns the corresponding print ID and the print result. The corresponding print data is found through the print ID, and the data is sent to the data collection service through the data collection interface.
[0088] Therefore, the terminal A needs to call the printed ticket information, collect it through the above data collection service, and send it to the terminal B through the device interconnection channel after the collection is completed. The APP of the terminal B receives the data and displays it.
[0089] Therefore, the NFC channel is used to realize the quick discovery of the target device, so that a logical full connection network is constructed, the quick and non-sensing connection between devices is realized, and the quick, direct and unified information flow transfer scene between merchants and customers can be met. In addition, the application data collection function of different platforms can be solved in the embodiment, and the device interconnection channel is matched, so that the required information of the user can be quickly provided to the mobile phone of the user.
[0090] Embodiment two
[0091] The difference between the embodiment and the embodiment one is that the encryption method during data transmission is further limited, and the encryption method is as follows.
[0092] The data type of the display information is obtained.
[0093] If the display information is an encrypted data type, a PIN code generated by a receiving device is received, a session key is generated by using the PIN code and a key negotiation protocol, and the display information transmitted by the receiving device is received according to the session key.
[0094] If the display information is a preset data type, when a data transmission request is sent to the receiving device, whether the IP address of the data transmission request is legal is verified by the receiving device, if yes, the display information transmitted by the receiving device is received.
[0095] In the embodiment, when the user performs data transmission, the data security level can be transmitted when the data transmission interface of the unified network interface is called, and the data security level is divided into three types in the embodiment: an encrypted data type, which needs to be encrypted during transmission; a general data type, which directly performs data transmission; and a specific data type, which needs to be authenticated by IP and device during transmission.
[0096] Specifically, for the encrypted type data, a PIN code is generated by the terminal B, the PIN code is input in the terminal A, the session key is negotiated based on the PIN code and the PAKE protocol handshake, and the encrypted type data is transmitted by the key.
[0097] For the specific type data, IP and device authentication are needed, the terminal B is specified by the user application to be transmitted, and the IP is verified by the terminal A when the data transmission request is initiated. The authentication of the device can be authenticated by the user application through the terminal owner information or the specified terminal information, for example, through the specified device ID or the specified login user authentication.
[0098] For the data without encryption and not specific type, the data can be directly transmitted after the connection is established.
[0099] Therefore, in the embodiment, the key transmission or IP authentication during data transmission is selected according to the data type, so that the security of data transmission is improved.
[0100] Embodiment three
[0101] Please refer to Figure 2 A terminal 1 for acquiring information of a collecting device, comprising a memory 2, a processor 3, and a computer program stored in the memory 2 and executable on the processor 3, wherein the processor 3 implements each step of the method for acquiring information of a collecting device according to the first or second embodiment when executing the computer program.
[0102] In summary, the method and terminal for acquiring information of a collecting device provided by the application establish an NFC connection channel with the collecting device through the NFC card simulation function, and transmit wireless communication data through the NFC connection channel, so as to quickly establish other wireless connection channels through the NFC function. The collecting device collects display information from the output node, and the user device receives the display information sent by the collecting device through the wireless connection channel, wherein the user can configure the information display requirement and send the requirement to the collecting device, and the collecting device selects the printing result corresponding to the printing ID from the output node according to the information display requirement, so as to ensure the flexibility of the user to acquire information of the collecting device in this way. In the data transmission process, the key transmission or IP and device authentication during data transmission is selected according to the data type, so that the security of data transmission is improved. In this way, the user only needs to perform NFC induction to acquire the display information sent by the collecting device, and the information interaction speed is fast and the operation is simple for the user.
[0103] The above is only an embodiment of the application, and does not limit the patent scope of the application, and any equivalent transformation or direct or indirect application in the related technical field based on the content of the specification and drawings of the application is also included in the patent protection scope of the application.
Claims
1. A method of acquiring information of an acquirer device, characterized by, The method comprises the steps of: establishing an NFC connection channel with the acquirer based on an application identifier through an NFC card simulation function; receiving wireless communication data returned by the acquirer through the NFC connection channel, and establishing a wireless connection channel according to the wireless communication data; receiving display information collected by the acquirer from an output node through the wireless connection channel; receiving display information collected by the acquirer from an output node through the wireless connection channel comprises: configuring information display requirements, and sending the information display requirements to the acquirer; receiving display information found by the acquirer according to a print ID, wherein the print ID is obtained from the output node according to the information display requirements.
2. The method of claim 1, wherein, receiving display information collected by the acquirer from an output node through the wireless connection channel further comprises: obtaining the data type of the display information; if the display information is encrypted data, receiving a PIN code generated by the acquirer, generating a session key using the PIN code and a key negotiation protocol, and receiving the display information transmitted by the acquirer according to the session key; if the display information is a preset data type, when sending a data transmission request to the acquirer, checking whether the IP address of the data transmission request is legal through the acquirer, and if so, receiving the display information transmitted by the acquirer.
3. The method of claim 1, wherein, The step of establishing an NFC connection channel with the acquirer based on an application identifier through an NFC card simulation function comprises: previously setting a preset application identifier with the acquirer, and the acquirer judges whether the received NFC card information contains the preset application identifier, and if so, uses the preset application identifier to establish an NFC connection channel.
4. The method of claim 1, wherein, The step of receiving wireless communication data returned by the acquirer through the NFC connection channel, and establishing a wireless connection channel according to the wireless communication data comprises: receiving wireless communication data returned by the acquirer through the NFC connection channel, selecting the communication data with the highest priority from the wireless communication data according to a preset priority, wherein the wireless communication data comprises WiFi information, Bluetooth information, Ethernet information and NFC information; establishing a wireless connection channel according to the communication data with the highest priority.
5. A terminal for acquiring acquirer device information, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the computer program comprises instructions for causing the processor to perform the steps of: receiving a request for acquirer device information from a payment server; and transmitting the acquirer device information to the payment server. When the processor executes the computer program, the following steps are implemented: establishing an NFC connection channel with the acquirer based on an application identifier through an NFC card simulation function; receiving wireless communication data returned by the acquirer through the NFC connection channel, and establishing a wireless connection channel according to the wireless communication data; receiving display information collected by the acquirer from an output node through the wireless connection channel; receiving display information collected by the acquirer from an output node through the wireless connection channel comprises: configuring information display requirements, and sending the information display requirements to the acquirer; receiving display information found by the acquirer according to a print ID, wherein the print ID is obtained from the output node according to the information display requirements.
6. The terminal of claim 5, wherein, receiving display information collected by the acquirer from an output node through the wireless connection channel further comprises: obtaining the data type of the display information; If the display information is of the encrypted data type, a PIN code generated by the receiving device is received, a session key is generated using the PIN code and a key agreement protocol, and the display information transmitted by the receiving device is received according to the session key; If the display information is of the preset data type, when a data transmission request is sent to the receiving device, the IP address of the data transmission request is checked by the receiving device, and if the IP address is legal, the display information transmitted by the receiving device is received.
7. The terminal of claim 5, wherein the terminal is configured to transmit the request for the information of the acquirer to the server via the network. The NFC card simulation function and the receiving device establish an NFC connection channel based on an application identifier, which includes: A preset application identifier is set with the receiving device in advance, and the receiving device determines whether the received NFC card information contains the preset application identifier, and if so, the NFC connection channel is established using the preset application identifier.
8. The terminal of claim 5, wherein, The wireless communication data returned by the receiving device is received through the NFC connection channel, and a wireless connection channel is established according to the wireless communication data, which includes: The wireless communication data returned by the receiving device is received through the NFC connection channel, the communication data with the highest priority is selected from the wireless communication data according to a preset priority, and the wireless communication data includes WiFi information, Bluetooth information, Ethernet information, and NFC information; A wireless connection channel is established according to the communication data with the highest priority.
Citation Information
Patent Citations
Method and system for realizing rapid interconnection of equipment based on NFC (Near Field Communication)
CN114501406A
Direct provisioning of electronic transaction data
US20170309137A1