Prop data transmission method, device, equipment, system and storage medium

NFC technology provides prop data to game devices, which solves the problem that game devices cannot purchase virtual props online without the network, and achieves the increase in game content and the improvement of playability.

CN119701371APending Publication Date: 2025-03-28BEIJING TSINGTENG MICROSYSTEM CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411771259.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

The gaming device cannot purchase virtual props online without a network connection, resulting in less playability of the game.

Method used

Through near-field communication (NFC) technology, prop data is provided to game devices to realize online purchase of virtual props. The specific method includes displaying a prop selection page on the first device, activating the prop instance object in response to the user's selection operation, and transmitting the activated prop data to the second device through an NFC connection.

Benefits of technology

It realizes online purchase of virtual props without the Internet, increases game content and improves the playability of the game.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119701371A_ABST
    Figure CN119701371A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, and particularly provides a prop data transmission method, apparatus, device and system, and a storage medium, the method comprises the following steps: a server issues prop data to a first device, the first device comprises at least one prop instance object in an inactive state, and the prop instance object stores the prop data; in the embodiment of the invention, the first equipment displays the prop selection page, the prop selection page comprises a plurality of prop identifiers, a user can execute selection operation for the prop identifiers in the prop selection page, and the first equipment sets the prop instance object corresponding to the selected prop identifier to be in an activated state. And finally, after the NFC connection is established between the first equipment and the second equipment, the prop data stored in the prop instance object in the activated state is transmitted to the second equipment. As the item is provided for the second equipment through the NFC technology, online purchase of the virtual item is realized, the game content is increased, and the playability of the game is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a method, device, equipment, system and storage medium for transmitting prop data. Background Art

[0002] With the rapid development of the online game industry, a wide variety of game products have appeared on the market, such as shooting games, online card games, role-playing games, etc. Most types of game play are equipped with a prop system. The game characters controlled by game players can obtain game rewards such as experience, combat power, and skins by using virtual props.

[0003] The above virtual props can only be used after the game device obtains the data of the virtual props from the game background server. However, some game devices cannot communicate with the outside world without a network, making it difficult to purchase virtual props online, thereby reducing the playability of the game. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides a prop data transmission method, device, equipment, system and storage medium, which provide props to game devices through near field communication (NFC), realize online purchase of virtual props, increase game content and improve game playability.

[0005] In a first aspect, the present application provides a method for transmitting prop data, which is applied to a first device, the first device having an Internet connection function and an NFC function, the method comprising: displaying a prop selection page, the prop selection page comprising a plurality of prop identifiers, the prop identifiers corresponding to prop instance objects in an inactive state, the prop instance objects storing prop data, the prop data being sent by a server to the first device; in response to a selection operation for a prop identifier, setting the prop instance object corresponding to the selected prop identifier to an activated state; after establishing an NFC communication connection with a second device, transmitting the prop data in the prop instance object in an activated state to the second device via the NFC communication connection.

[0006] In the second aspect, the present application provides a method for transmitting prop data, which is applied to a second device, and the second device has an NFC function. The method includes: establishing an NFC communication connection with a first device; receiving prop data transmitted by the first device through the NFC communication connection, and the prop data is stored in a prop instance object, and the prop data is sent from the server to the first device.

[0007] In the third aspect, the present application provides a prop data transmission system, the system comprising a first device, a second device and a server, the first device having an Internet connection function and an NFC function, and the second device having an NFC function; the first device is used to display a prop selection page, the prop selection page comprising multiple prop identifiers, the prop identifiers corresponding to prop instance objects in an inactive state, the prop instance objects storing prop data, and the prop data being sent by the server to the first device; the first device is used to set the prop instance object corresponding to the selected prop identifier to an activated state in response to a selection operation for the prop identifier; the first device establishes an NFC communication connection with the second device; the first device transmits the prop data in the prop instance object in an activated state to the second device via the NFC communication connection.

[0008] In a fourth aspect, the present application provides a device for transmitting prop data, which is configured on a first device, and the first device has an Internet connection function and an NFC function. The device includes: a page display module, which is used to display a prop selection page, and the prop selection page includes multiple prop identifiers, and the prop identifier corresponds to a prop instance object in an inactive state. The prop instance object stores prop data, and the prop data is sent from a server to the first device; a state setting module, which is used to set the prop instance object corresponding to the selected prop identifier to an activated state in response to a selection operation on the prop identifier; a first data transmission module, which is used to transmit the prop data in the prop instance object in an activated state to the second device through the NFC communication connection after establishing an NFC communication connection with the second device.

[0009] In the fifth aspect, the present application provides a prop data transmission device, which is configured on a second device, and the second device has an NFC function. The device includes: a connection establishment module, used to establish an NFC communication connection with a first device; a second data transmission module, used to receive prop data transmitted by the first device through an NFC communication connection, the prop data is stored in a prop instance object, and the prop data is sent from the server to the transmission first device.

[0010] In a sixth aspect, the present application provides a prop data transmission device, the device comprising: one or more processors; a storage device for storing one or more programs; when the one or more programs are executed by one or more processors, the one or more processors implement the prop data transmission method as in the first aspect above or the prop data transmission method as in the second aspect above.

[0011] In a seventh aspect, the present application provides a storage medium, which may be a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for transmitting prop data as in the first aspect or the method for transmitting prop data as in the second aspect.

[0012] In an eighth aspect, an embodiment of the present application provides a computer program product, which includes a computer program or instructions, which, when executed by a processor, implements a method for transmitting prop data as described in any one of the first aspects above or a method for transmitting prop data as described in the second aspect above.

[0013] Compared with the prior art, the technical solution provided by the embodiments of the present application has the following advantages:

[0014] The embodiment of the present application provides a method, device, equipment and storage medium for transmitting prop data, the method comprising: the server sends the prop data to the first device, the first device includes at least one prop instance object in an inactive state, and the prop instance object stores the prop data; the first device displays a prop selection page, and the prop selection page includes multiple prop identifiers, the user can perform a selection operation for the prop identifier in the prop selection page, and the first device sets the prop instance object corresponding to the selected prop identifier to an activated state. Finally, after the first device establishes an NFC connection with the second device, the prop data stored in the prop instance object in the activated state is transmitted to the second device. Since the props are provided to the second device through NFC technology, the online purchase of virtual props is realized, the game content is increased, and the playability of the game is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0016] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0017] Figure 1 A schematic diagram of a flow chart of a method for transmitting prop data applied to a first device provided in an embodiment of the present application;

[0018] Figure 2 A schematic flow chart of a method for transmitting optimized prop data applied to a first device provided in an embodiment of the present application;

[0019] Figure 3 A schematic diagram of the process of decrypting encrypted information by the SE chip provided in an embodiment of the present application;

[0020] Figure 4 A schematic diagram of a process for generating a prop instance object from an SE chip provided in an embodiment of the present application;

[0021] Figure 5 A schematic diagram of the process of deleting prop data from an SE chip provided in an embodiment of the present application;

[0022] Figure 6 A schematic diagram of a flow chart of a method for transmitting prop data applied to a second device provided in an embodiment of the present application;

[0023] Figure 7 A schematic diagram of the structure of a prop data transmission system provided in an embodiment of the present application;

[0024] Figure 8 A schematic diagram of a flow chart of a method for transmitting prop data applied to a data transmission system provided in an embodiment of the present application;

[0025] Fig. 9 A schematic diagram of a flow chart of a method for interaction between a server and a first device provided in an embodiment of the present application;

[0026] Fig.10 A flowchart of a method for interacting between a second device and a first device is provided for an embodiment of the present application;

[0027] Fig.11 A schematic diagram of the structure of a device for transmitting prop data provided in an embodiment of the present application;

[0028] Fig.12 A schematic diagram of the structure of a device for transmitting prop data provided in an embodiment of the present application;

[0029] Fig.13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0031] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only part of the embodiments of the present application, rather than all of the embodiments.

[0032] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0033] It should be noted that the concepts such as "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0034] It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0035] The following is a detailed description of the method for transmitting prop data provided by the present application in conjunction with the accompanying drawings and specific implementation methods.

[0036] Figure 1 This is a flow chart of a method for transmitting prop data in an embodiment of the present application. This embodiment is applicable to data transmission in a network-free device. The method can be executed by a prop data transmission device. The prop data transmission device can be implemented in software and / or hardware. The prop data transmission device can be configured in a first device.

[0037] The first device has networking functions and near field communication (NFC) functions.

[0038] The networking function refers to the ability of the first device to connect to the Internet and perform data transmission and communication through a wired or wireless network. The wireless network may include: cellular network, wireless fidelity (WIreless-FIdelity, WI-FI), Bluetooth (Bluetooth, BT), etc. The network may include: mobile fourth generation mobile communication technology (4G), fifth generation mobile communication technology (5G), sixth generation mobile communication technology (6G), etc.

[0039] NFC is a short-range high-frequency wireless communication technology that allows two devices to exchange data within a few centimeters. NFC has a variety of application scenarios, including but not limited to: mobile payment, data exchange, smart tag reading, access control, smart home control. The embodiment of this application mainly uses the data transmission function of NFC.

[0040] The first device can not only connect to the Internet to carry out various online activities and data transmission, but also quickly and conveniently exchange data with other NFC-enabled devices or tags within a short distance. Exemplarily, the first device includes but is not limited to: a smartphone, a smart watch, a wearable device, a tablet computer, a laptop computer, etc. In the embodiment of the present application, the first device is taken as an example to illustrate.

[0041] The method for transmitting prop data provided in the embodiment of the present application mainly utilizes the first device to transmit the prop data to the second device. The second device cannot be connected to the Internet. In other words, the second device cannot be connected to the Internet or the local area network, and cannot perform online activities and data transmission. There are mainly two situations in which the second device cannot be connected to the Internet: one is that the second device is in a networkless environment, such as an underground garage; the other is that the second device itself does not have the networking function, for example, the communication module is not installed, or the communication module fails and cannot be used normally. The above-mentioned second device includes but is not limited to: handheld game consoles, baseband-free mobile phones, etc.

[0042] like Figure 1 As shown, the method for transmitting prop data provided in the embodiment of the present application mainly includes steps S101-S103.

[0043] A game client matching the game in the second device is installed in the first device, and the embodiment of the present application is mainly executed by the game client installed in the first device.

[0044] S101. Display a prop selection page, which includes a plurality of prop identifiers, each of which corresponds to an inactive prop instance object. The prop instance object stores prop data, which is sent from the server to the first device.

[0045] The item selection page is a page displayed in the game client, which includes multiple item identifiers, where the item identifier may include an item ID, an item name, an item attribute, and the like.

[0046] Furthermore, the prop identification included in the prop selection page can be displayed in the form of an NFC card, which can also be called a prop card. The prop identification included in the prop selection page has the corresponding prop data stored in the first device. In other words, the prop data is stored in the first device, and the prop card corresponding to the prop data will be displayed in the prop selection page.

[0047] In one possible implementation, a game client sends a prop data request to a server through a network connection. The server sends the prop data to the game client based on the prop data request and writes the prop data into an applet instance object to obtain a prop instance object. After the prop instance object is generated, the prop identifier of the prop data is displayed in the prop selection page. The prop identifier can be displayed in the form of a prop card.

[0048] Inactive prop instance objects do not expose their functions, thus increasing data security. Unselected Applets cannot be accessed externally, reducing potential security risks.

[0049] Furthermore, inactive item instance objects are stored on the SE chip, which can further enhance data security.

[0050] When the game player wants to transfer props to the second device, in response to the game player's selection page display instruction for the game client, the prop selection page is displayed in the interface of the game client, and the prop selection page includes multiple prop identifiers.

[0051] S102: In response to a selection operation on a prop identifier, setting the prop instance object corresponding to the selected prop identifier to an activated state.

[0052] The above selection operation may include a trigger operation for the prop identifier, and the trigger operation includes single-click, double-click, slide and other operations.

[0053] In response to the selection operation for the prop identifier, it can be understood that the game player wants to transfer the prop data corresponding to the selected prop identifier to the second device. At this time, the prop instance object corresponding to the selected prop identifier is set to an activated state to open the access rights of the prop instance object.

[0054] S103. After establishing an NFC communication connection with the second device, the prop data in the prop instance object in the activated state is transmitted to the second device through the NFC communication connection.

[0055] In the embodiment of the present application, in response to the NFC activation instruction, the first device activates the NFC function and sets the NFC function of the first device to the listening mode. The order of activation of the NFC function and activation of the prop instance object is not limited. The NFC function can be activated first and then the prop instance object can be activated, or the prop instance object can be activated first and then the NFC function can be activated.

[0056] The APDU instructions are used to perform interactive communication between the first device and the second device.

[0057] Further, the game player turns on the NFC function of the second device and enters the process of obtaining props. The second device attempts to find the prop card and sends a select applet instruction to the SE chip in the first device. The first device sends a select applet response to the second device.

[0058] Among them, select the Applet instruction: 00A4040008A000544D43415050; select the Applet response: 6F108408A000544D43415050A5069F6501FF9000.

[0059] In the selection command, 00A4 represents selection, 04 is selected by Applet ID, 08 is length, and A000544D43415050 is the ID of the prop card Applet. Select the response to install the FCI template for combination. 6F represents the FCI template structure, 10 is the template structure data length, 84 is the Applet ID, 08 is the ID length, A000544D43415050 is the prop card ID, A5 is the unique data, 9F65 is used to indicate the maximum length of communication data, and its length is FF. 9000 represents that the process is normal and the instruction is correct.

[0060] The first device and the second device turn on the NFC function, send a selection instruction, and perform two-way authentication through NFC. The process of performing two-way authentication through NFC includes: 1) Initiate a connection request: one device, as the initiator, sends a connection request to the other device. The connection request may contain some preliminary identity information or an authentication request. 2) Respond to the request: After receiving the request, the receiving device will verify whether the identity information of the initiator meets the preset security standards. If the verification is successful, a confirmation message will be responded; if it fails, the connection will be rejected. 3) Initiator verification: After receiving the response, the initiator device will also verify the information in the response to confirm the identity of the receiver. 4) Establish a secure connection: After the two devices have gone through the above mutual authentication process, they can determine that the other party is trustworthy, thereby establishing a secure NFC connection. On this connection, the two parties can perform further prop data transmission. Among them, the first device can be the initiating device, and correspondingly, the second device is the receiving device. The second device can be the initiating device, and correspondingly, the first device is the receiving device.

[0061] After the two-way authentication is passed, after the first device receives the prop acquisition instruction sent by the second device, it sends the prop data to the second device as a response. After the second device receives the prop data, it sends a successful reception message to the first device. After successful reception, the SE chip records the successful transmission of the prop data.

[0062] Among them, the request prop acquisition instruction: 80CAF9F700; the response prop data: F9F7XXYY...ZZ9000.

[0063] In the request prop acquisition instruction, 80 is the GP platform type instruction, CA is to obtain data, F9F7 is the prop data, and 00 means no subsequent data. In the response prop data, F9F7 corresponds to the prop data in the request, XX is the data length, YY...ZZ is the prop data content, and the length is XX. 9000 means the process is normal and the instruction is correct.

[0064] Item data content YY...ZZ: It consists of an 8-byte item ID and several bytes of item attributes. The item ID is the name and image of the specific item issued, and the item attributes determine the purpose and effect of the item. At the same time, if the item ID cannot be found in the game database, it is an invalid ID.

[0065] The embodiment of the present application provides a method, device, equipment and storage medium for transmitting prop data, the method comprising: the server sends the prop data to the first device, the first device includes a plurality of prop instance objects, and the prop data is stored in the prop instance object; the first device displays a prop selection page, and the prop selection page includes a plurality of prop identifiers, the user can perform a selection operation for the prop identifier in the prop selection page, and the first device sets the prop instance object corresponding to the selected prop identifier to an activated state. Finally, after the first device establishes an NFC connection with the second device, the prop data stored in the prop instance object in the activated state is transmitted to the second device. Since the props are provided to the second device through NFC technology, the online purchase of virtual props is realized, the game content is increased, and the playability of the game is improved.

[0066] On the basis of the above-mentioned embodiments, the present application further optimizes the method for transmitting prop data. Figure 2 As shown, the optimized prop data transmission method includes S201-S211.

[0067] S201, generating a prop data request.

[0068] The prop data request may be understood as an instruction generated by the first device for requesting the server to send the prop data.

[0069] The game client of the first device includes a prop store. When a game player opens the prop store of the game client, the game player selects a prop that he wants to buy in the prop store. The first device generates a prop data request in response to the selection operation of the game player in the prop store. The prop data request includes a prop name, icon, attributes, etc.

[0070] In a possible implementation, a game client of the first device establishes a network connection with a server, and then the game client performs a two-way authentication with the server through a built-in SE chip of the first device.

[0071] Mutual Authentication refers to the process of mutual authentication between the communicating parties (game client and server). Mutual authentication ensures that both the client and server can confirm the true identity of each other, thereby preventing security threats such as third-party attacks. When using SE chips for mutual authentication, public key infrastructure (PKI), digital certificates, encryption algorithms and other technologies are mainly used.

[0072] The main process of the game client performing two-way authentication with the server through the SE chip built into the first device includes:

[0073] 1) The game client initiates a connection request to the server.

[0074] 2) The game client and server exchange their respective digital certificates to verify each other's identity.

[0075] The game client checks whether the certificate provided by the server is valid (such as whether the certificate has expired, whether it is issued by a trusted CA, etc.), and the server also verifies the validity of the client certificate.

[0076] The digital certificate of the game client is applied for by the game client to the certificate authority (CA). The digital certificate contains the public key and identity information of the game client and is signed by the CA to ensure its authenticity. The digital certificate of the server is applied for by the server to the CA. The digital certificate contains the public key and identity information of the server.

[0077] 3) The game client verifies the server.

[0078] The game client uses the server's public key to decrypt a signed message sent by the server (the message may contain some random numbers or timestamps to prevent replay attacks). If the decryption is successful and the message content is correct, it means that the server has the corresponding private key and the identity verification is successful.

[0079] 4) The server verifies the client.

[0080] The server will also use the client's public key to verify the signed message sent by the client to confirm the client's identity.

[0081] 5) Establish a safe channel.

[0082] Once both parties (game client and server) have completed authentication, they will negotiate a session key to encrypt subsequent data transmission. This is done through a key exchange protocol such as Diffie-Hellman to ensure that even in the case of network monitoring, a third party cannot learn the session key.

[0083] Establishing a secure pass means two-way authentication between the game client and the server. The main function of the SE chip is to safely store the private key and perform related encryption operations, such as generating digital signatures, to ensure the security of the key and the non-repudiation of the operation.

[0084] S202: Send a prop data request to the server, where the prop data request is used to instruct the server to send the prop data.

[0085] After the two-way authentication is passed, the first device generates a prop data request in response to the selection operation of the game player in the prop store, and sends the prop data request to the server.

[0086] Furthermore, the game client can send a prop data request to the server through the secure channel established between the game client and the server. After receiving the prop data request, the server performs a legality and integrity check on the prop data request, and after the check passes, sends the prop data to the first device.

[0087] Legitimacy verification is the process by which the server ensures that the source of the item data request is legitimate and that the requester has the right to perform a specific operation. In computer systems and network security, legitimacy verification usually includes two main parts: identity verification and authorization verification. Identity verification refers to verifying the true identity of the requester. Common authentication methods include: username and password, access token, digital certificate, signature verification, etc. Authorization verification refers to the server's determination of whether the game client has the right to perform a specific operation or access a specific resource. Common authorization verification methods include: role-based access control, rights list, access control list, etc.

[0088] The main process of checking the legitimacy and integrity of prop data requests includes: extracting identity information from prop data requests, such as user ID, access token, signature, etc. Identity verification: check whether the user ID exists in the system; check the validity, expiration time and permission range of the token; recalculate the signature using the same hash function and key, and compare it with the signature in the request to ensure that the data has not been tampered with. Authorization verification: verify whether the user has the right to perform the operation based on the user's role or permission list; if the request involves a specific resource, check whether the user has the right to access the resource. If both identity verification and authorization verification pass, the prop data is sent to the first device. If any step of verification fails, the corresponding error information is returned to the first device, such as "invalid user ID", "invalid token", "no access", etc.

[0089] The server verifies the legitimacy and integrity of item data requests to further ensure system security and data accuracy.

[0090] Furthermore, the game client encrypts the prop data request using the session key negotiated by both parties through the SE chip, and the game client can send the encrypted prop data request to the server through the secure channel established between the game client and the server. After receiving the encrypted prop data request, the server decrypts the encrypted prop data request, performs a legality and integrity check on the decrypted prop data request, and sends the prop data to the first device after the check passes.

[0091] The encryption algorithm of the game client and the decryption algorithm of the server are determined by negotiation between the two parties, and the encryption and decryption algorithms are not specifically limited in the embodiments of the present application.

[0092] Encrypting the transmission of prop data requests can improve the security of data transmission.

[0093] S203, receiving the prop data sent by the server, and verifying the prop data.

[0094] The game client receives the prop data downloaded by the server and verifies the legitimacy and integrity of the prop data. If the verification passes, a reception completion response is sent to the server. At this point, the process of the server sending the prop data to the first device ends.

[0095] The process of verifying the legitimacy and integrity of item data by the game client is the same as the process of verifying the legitimacy and integrity of item data requests by the server. For details, please refer to the description in the above embodiment and will not be repeated in the embodiments of this application.

[0096] In a possible implementation, after receiving the prop data request sent by the game client, the server obtains the prop data corresponding to the prop data request, encrypts the prop data using the session key, and sends the encrypted prop data to the game client of the first device. The game client verifies the legitimacy and integrity of the encrypted prop data, and if the verification passes, sends a reception completion response to the server.

[0097] S204: After verification, the item data is sent to the SE chip.

[0098] The game client receives the prop data sent by the server and verifies the legitimacy and integrity of the prop data. If the verification passes, it sends a reception completion response to the server and sends the prop data to the SE chip.

[0099] Further, such as Figure 3 As shown, the first device 10 includes a game client 11 and a SE chip 12. The game client 11 receives the encrypted prop data sent by the server, and verifies the legality and integrity of the encrypted prop data. If the verification passes, it sends a reception completion response to the server and sends the encrypted prop data to the SE chip 12. The SE chip parses the encrypted prop data and then decrypts the encrypted prop data according to the session key to obtain the decrypted prop data, that is, the plaintext data of the prop.

[0100] The session key and encryption / decryption algorithm are negotiated after the SE chip and the server establish a secure channel. The encryption / decryption algorithm used is not specifically limited in the embodiments of the present application.

[0101] S205: Create an instance object in the SE chip.

[0102] Among them, the instance object refers to the specific object created according to the class. A class is a template or blueprint that defines a set of attributes (variables) and methods (functions), and the instance object is a specific entity created according to this template. Each instance object has its own state (attribute value) and behavior (method). The above instance object is an applet instance object. In Java, Applet is a special component and a small application running in the SE chip. The Applet instance object is an instance of the java.applet.Applet class, which is usually automatically created and managed by the game client.

[0103] The process of creating an instance object in the SE chip includes: transferring the compiled Applet code and data to the SE chip and registering them in the file system of the SE chip, actually creating an instance object of an Applet on the SE chip, and registering the Applet instance object in the SE chip operating environment so that it can receive and process APDU commands.

[0104] S206. Write the prop data into the instance object through the SE chip to obtain the prop instance object.

[0105] After the applet application is installed in the SE chip, the prop data is written into the instance object in the applet application to obtain a prop instance object, which can be understood as a virtual prop card, that is, a prop card is created in the SE chip, and the prop data is stored in the prop card. A prop card stores the prop data of a prop.

[0106] S207. Set the prop instance object to an inactive state.

[0107] In the SE chip, the Applet instance object can be in different states, among which the "inactive state" means that the Applet has been installed on the SE chip but has not been selected or activated. In this state, the Applet instance object will not process any APDU commands or perform any operations.

[0108] In the present application embodiment, Figure 4As shown, the first device 10 includes a game client 11 and a SE chip 12, wherein the game client 11 sends a prop card creation instruction to the SE chip 12, and after the SE chip 12 receives the prop card creation instruction, it executes the prop card creation process. The prop card creation process mainly includes: creating an Applet instance object in the SE chip, and then writing the prop data to the Applet instance object to obtain the prop instance object. At this time, the prop instance object is in an inactive state by default, and this state can only be operated through the game client, and the external device does not have access to the Applet. When the game client selects the prop identifier, that is, the Applet instance object is activated, the second device can try to receive the prop data.

[0109] An applet instance object is created in the SE chip, and the plain text data of the props is written into the instance object. The instance object is in an inactive state by default. The inactive applet instance object does not expose its functions, thereby increasing the security of the system. Unselected applet cannot be accessed externally, reducing potential security risks.

[0110] S208: Displaying a prop selection page, which includes a plurality of prop identifiers.

[0111] S209: In response to the selection operation on the prop identifier, the prop instance object corresponding to the selected prop identifier is set to an activated state.

[0112] The first device includes a plurality of prop instance objects, in which prop instance objects are stored prop data, and the prop data is sent from the server to the first device.

[0113] S210. After establishing an NFC communication connection with the second device, the prop data in the prop instance object in the activated state is transmitted to the second device through the NFC communication connection.

[0114] S208-S210 provided in the embodiment of the present application is the same as the process of S101-S103 provided in the above embodiment. For details, please refer to the description in the above embodiment, which will not be repeated in the embodiment of the present application.

[0115] S211. After receiving the successful reception message, delete the prop instance object in the SE chip and the prop data stored in the prop instance object.

[0116] The reception success message is used to indicate that the second device has successfully received the prop data.

[0117] In one possible implementation, after receiving a successful reception message, the prop instance object in the SE chip and the prop data stored in the prop instance object are deleted, including: after receiving a successful reception message, querying the status of the prop instance object in the SE chip; when the status of the prop instance object is successful transmission, deleting the prop instance object in the SE chip and the prop data stored in the prop instance object.

[0118] like Figure 5 As shown, after the prop data transmission is completed, the SE chip 12 sends a successful reception message to the game client 11. After the game client receives the successful reception message, it queries the successful delivery record of the props in the SE chip. If the status of the prop instance object in the SE chip is that the transmission is successful, the prop instance object and the prop data will be deleted, and the game client interface will prompt the user, and the prop data transmission process is completed.

[0119] Figure 6 This is a flowchart of a method for transmitting prop data applied to a second device in an embodiment of the present application. This embodiment can be applicable to data transmission between devices without a network. The method can be executed by a transmission device for prop data. The transmission device for prop data can be implemented in software and / or hardware. The transmission device for prop data can be configured in the second device.

[0120] Among them, the second device cannot be connected to the Internet, in other words, the second device cannot be connected to the Internet or local area network, and cannot perform online activities and data transmission. There are mainly two situations in which the second device cannot be connected to the Internet: one is that the second device is in a networkless environment, such as an underground garage; the other is that the second device itself does not have the Internet function, for example, the communication module is not installed, or the communication module is faulty and cannot be used normally. The above-mentioned second device includes but is not limited to: handheld game consoles, baseband-free mobile phones, etc.

[0121] The second device has an NFC function. The NFC function can be described in the above embodiment, and will not be repeated in the embodiment of the present application.

[0122] like Figure 6 As shown, the method for transmitting prop data provided in the embodiment of the present application mainly includes steps S601-S602.

[0123] S601: Establish an NFC communication connection with a first device.

[0124] In an embodiment of the present application, the second device responds to the NFC enable instruction, the second device enables the NFC function, and sets the NFC function of the second device to the active mode or the initiator mode. The second device in the active mode is in an active state and can initiate a communication request. The second device actively searches for nearby NFC devices and initiates a communication request. Once the first device is found, a select applet instruction is sent to the first device. After receiving the applet instruction, the first device sends a select applet response to the second device.

[0125] Among them, select the Applet instruction: 00A4040008A000544D43415050; select the Applet response: 6F108408A000544D43415050A5069F6501FF9000.

[0126] In the selection command, 00A4 represents selection, 04 is selected by Applet ID, 08 is length, and A000544D43415050 is the ID of the prop card Applet. Select the response to install the FCI template for combination. 6F represents the FCI template structure, 10 is the template structure data length, 84 is the Applet ID, 08 is the ID length, A000544D43415050 is the prop card ID, A5 is the unique data, 9F65 is used to indicate the maximum length of communication data, and its length is FF. 9000 represents that the process is normal and the instruction is correct.

[0127] The first device and the second device turn on the NFC function, send a selection instruction, and perform two-way authentication through NFC. The process of two-way authentication can refer to the description in the above embodiment.

[0128] After the mutual authentication process, both devices can determine that the other party is trustworthy, thus establishing a secure NFC connection. On this connection, both parties can further transmit prop data.

[0129] S602: Receive prop data transmitted by the first device through the NFC communication connection. The prop data is stored in the prop instance object. The prop data is sent from the server to the first device.

[0130] After the NFC connection is established, the second device sends a request to obtain the props instruction to the first device. After receiving the request to obtain the props instruction sent by the second device, the first device sends the props data to the second device as a response. After receiving the props data, the second device sends a successful reception message to the first device. After successful reception, the SE chip records the successful transmission of the props data.

[0131] Among them, the request prop acquisition instruction: 80CAF9F700; the response prop data: F9F7XXYY...ZZ9000.

[0132] In the request prop acquisition instruction, 80 is the GP platform type instruction, CA is to obtain data, F9F7 is the prop data, and 00 means no subsequent data. In the response prop data, F9F7 corresponds to the prop data in the request, XX is the data length, YY...ZZ is the prop data content, and the length is XX. 9000 means the process is normal and the instruction is correct.

[0133] Item data content YY...ZZ: It consists of an 8-byte item ID and several bytes of item attributes. The item ID is the name and image of the specific item issued, and the item attributes determine the purpose and effect of the item. At the same time, if the item ID cannot be found in the game database, it is an invalid ID.

[0134] The process of the server sending the prop data to the first device and the first device generating the prop instance object can refer to the description in the above embodiment and will not be described in detail in the embodiment of the present application.

[0135] In one possible implementation, after receiving the prop data, the second device verifies the prop data; after the verification passes, a reception success message is sent to the security component SE chip of the first device, and the reception success message is used to instruct the SE chip to record the prop instance object as successfully transmitted.

[0136] After receiving the prop data, the second device performs a legality and integrity check on the prop data to further ensure the correctness of the data. If the check succeeds, a reception success message is sent to the SE chip of the first device. If the check fails, an error message is sent to the first device, and a prop acquisition request instruction is sent to the first device again.

[0137] The process of the second device verifying the legitimacy and integrity of the prop data is the same as the verification process of the server end for the prop data request in the above embodiment. For details, please refer to the description in the above embodiment, and will not be repeated in the embodiments of this application.

[0138] The embodiment of the present application provides a method for transmitting prop data, which includes: the server sends the prop data to the first device, the first device includes multiple prop instance objects, and the prop data is stored in the prop instance object; the first device displays a prop selection page, and the prop selection page includes multiple prop identifiers, and the user can perform a selection operation for the prop identifier in the prop selection page, and the first device sets the prop instance object corresponding to the selected prop identifier to an activated state. Finally, after the first device establishes an NFC connection with the second device, the prop data stored in the activated prop instance object is transmitted to the second device. Since props are provided to the second device through NFC technology, online purchase of virtual props is realized, game content is increased, and the playability of the game is improved.

[0139] Figure 7 A structural diagram of a prop data transmission system provided in an embodiment of the present application, such as Figure 7 As shown, the prop data transmission system 70 includes a server 71, a first device 72 and a second device 73.

[0140] The server 71 is used to remotely download the item data to the first device 72 .

[0141] The first device 72 is installed with game client software and has the ability to interact with the server 71 over the network. The first device 72 also has an SE chip for data security and can perform authentication with the server 71 and the second device 73. The first device 72 also has an NFC function and can interact with the second device 73.

[0142] The second device 73 is equipped with an NFC function and can interact with the first device 72 via NFC.

[0143] Among them, the first device is used to display a prop selection page, which includes multiple prop identifiers, and the prop identifiers correspond to prop instance objects in an inactive state. The prop instance objects store prop data, and the prop data is sent from the server to the first device; the first device is used to set the prop instance object corresponding to the selected prop identifier to an activated state in response to a selection operation on the prop identifier; the first device establishes an NFC communication connection with the second device; the first device transmits the prop data in the prop instance object in an activated state to the second device through the NFC communication connection.

[0144] The embodiment of the present application provides a prop data transmission system, which includes a server, a first device, and a second device. The first device is used to display a prop selection page, which includes multiple prop identifiers, and the prop identifiers correspond to prop instance objects in an inactive state. The prop instance objects store prop data, and the prop data is sent from the server to the first device; the first device is used to respond to the selection operation for the prop identifier, and set the prop instance object corresponding to the selected prop identifier to an activated state; the first device establishes an NFC communication connection with the second device; the first device transmits the prop data in the prop instance object in the activated state to the second device via the NFC communication connection. Since props are provided to the second device through NFC technology, online purchase of virtual props is realized, game content is increased, and the playability of the game is improved.

[0145] Figure 8 A flow chart of a method for transmitting prop data in a data transmission system provided in an embodiment of the present application; Figure 8 As shown, the method for transmitting prop data applied to a data transmission system provided in an embodiment of the present application mainly includes:

[0146] S801. The first device sends a prop data request to the server.

[0147] S802: The server sends the item data to the first device.

[0148] The embodiment of the present application provides an interactive process for a server to send prop data, such as Fig. 9 As shown, the interactive process of the server sending prop data mainly includes the following steps: S901. The first device and the server establish a network connection and perform two-way authentication. S902. The first device generates a prop data request. S903. The first device sends a prop data request to the server. S904. The server verifies the legitimacy and integrity of the prop data request. S905. After the verification is passed, the server sends the prop data to the first device. S906. The first device receives the prop data sent by the server and verifies the prop data. S907. After the verification is passed, the first device sends a reception completion response to the server.

[0149] S803: The first device generates a prop instance object based on the prop data.

[0150] S804: The first device establishes an NFC connection with the second device.

[0151] S805: The first device sends the item data to the second device via NFC.

[0152] The embodiment of the present application provides an interactive process of transmitting prop data from a first device to a second device, such as Fig.10As shown, the interactive process of the first device transmitting prop data to the second device mainly includes: S1001, the first device turns on the NFC function, sets it in the listening mode, and activates the prop instance object. S1002, the second device turns on the NFC function and sets it in the card reading mode. S1003, the first device establishes an NFC connection with the second device. S1004, the second device sends a select applet instruction to the first device. S1005, the first device sends a select applet response to the second device. S1006, the first device and the second device perform two-way authentication. S1007, the second device sends a request prop acquisition instruction to the first device. S1008, the first device sends the response prop data to the second device. S1009, the second device uses the session key to decrypt the prop data to obtain the plaintext data of the prop. S1010, the second device verifies the legitimacy and integrity of the plaintext data of the prop. S1011, after the verification is passed, the second device sends a reception success message to the first device. S1012, the second device loads the prop data into the game application.

[0153] In the embodiments of the present application, only the data interaction process in the transmission system of prop data is introduced, and other specific data processing methods can refer to the description in the above embodiments.

[0154] Fig.11 Schematic diagram of the structure of a device for transmitting prop data in an embodiment of the present application. Fig.11 As shown, the prop data transmission device 110 provided in the embodiment of the present application is configured on the first device. The first device has an Internet connection function and a near field communication NFC function. The device 110 includes: a page display module 111, a status setting module 112 and a first data transmission module 113.

[0155] Among them, the page display module 111 is used to display the prop selection page, which includes multiple prop identifiers, the prop identifiers correspond to prop instance objects in an inactive state, the prop instance objects store prop data, and the prop data is sent from the server to the first device; the state setting module 112 is used to respond to the selection operation for the prop identifier and set the prop instance object corresponding to the selected prop identifier to an activated state; the first data transmission module 113 is used to transmit the prop data in the prop instance object in an activated state to the second device through the NFC communication connection after establishing an NFC communication connection with the second device.

[0156] In a possible implementation, the first device has a built-in secure element SE chip, and the prop instance object is stored in the SE chip.

[0157] In a possible implementation, it also includes: a prop data receiving module, used to generate a prop data request; sending a prop data request to the server, the prop data request is used to instruct the server to send the prop data; receiving the prop data sent by the server, and verifying the prop data; after the verification is passed, sending the prop data to the SE chip.

[0158] In a possible implementation, it also includes: a prop instance object generation module, which is used to create an instance object in the SE chip after sending the prop data to the SE chip; write the prop data into the instance object through the SE chip to obtain the prop instance object; and set the prop instance object to an inactive state.

[0159] In a possible implementation, it also includes: a deletion module, which is used to delete the prop instance object in the SE chip and the prop data stored in the prop instance object after receiving a successful reception message, and the successful reception message is used to indicate that the second device has successfully received the prop data.

[0160] In a possible implementation, it also includes: a reception success message is sent by the second device to the SE chip, and forwarded by the SE chip to the first device; a deletion module is specifically used to query the status of the prop instance object in the SE chip after receiving the reception success message; when the status of the prop instance object is successful transmission, the prop instance object in the SE chip and the prop data stored in the prop instance object are deleted.

[0161] Fig.12 Schematic diagram of the structure of a device for transmitting prop data in an embodiment of the present application. Fig.12 As shown, the prop data transmission device 120 provided in the embodiment of the present application is configured on the second device, and the second device has a near field communication NFC function. The prop data transmission device 120 includes: a connection establishment module 121 and a second data transmission module 122.

[0162] Among them, the connection establishment module 121 is used to establish an NFC communication connection with the first device; the second data transmission module 122 is used to receive prop data transmitted by the first device through the NFC communication connection. The prop data is stored in the prop instance object, and the prop data is sent from the server to the first device.

[0163] In a possible implementation, it also includes: a verification module, which is used to verify the prop data; after the verification is passed, a reception success message is sent to the security component SE chip of the first device, and the reception success message is used to instruct the SE chip to record the prop instance object as successfully transmitted.

[0164] The device for transmitting prop data provided in the embodiment of the present application can execute the method for transmitting prop data provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0165] Fig.13 is a schematic diagram of the structure of an electronic device provided in this embodiment. The electronic device may include a first device or a second device, such as Fig.13 As shown, the electronic device 1300 includes a processor 1310, a memory 1320, an input device 1330, and an output device 1340; the number of the processor 1310 in the electronic device can be one or more. Fig.13 A processor 1310 is taken as an example; the processor 1310, the memory 1320, the input device 1330 and the output device 1340 in the electronic device can be connected via a bus or other means. Fig.13 The example of connecting through bus is taken in the following.

[0166] The memory 1320 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the method for transmitting prop data in the embodiment of the present invention. The processor 1310 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 1320, that is, the method for transmitting prop data provided in the embodiment of the present invention is implemented.

[0167] The memory 1320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 1320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 1320 may further include a memory remotely arranged relative to the processor 1310, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0168] The input device 1330 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device, and may include a keyboard, a mouse, etc. The output device 1340 may include a display device such as a display screen.

[0169] This embodiment also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to implement the method for transmitting prop data provided in the embodiment of the present invention.

[0170] Of course, the computer executable instructions of a storage medium including computer executable instructions provided by an embodiment of the present invention are not limited to the operations of the method described above, but can also execute related operations in the prop data transmission method provided by any embodiment of the present invention.

[0171] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0172] It is worth noting that in the embodiment of the above-mentioned prop data transmission device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0173] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0174] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for transmitting prop data, characterized in that: The method is applied to a first device, the first device has a networking function and a near field communication (NFC) function, and the method includes: Displaying a prop selection page, wherein the prop selection page includes a plurality of prop identifiers, wherein the prop identifiers correspond to prop instance objects in an inactive state, wherein the prop instance objects store prop data, and wherein the prop data is sent from the server to the first device; In response to a selection operation on the prop identifier, setting the prop instance object corresponding to the selected prop identifier to an activated state; After establishing an NFC communication connection with the second device, the prop data in the prop instance object in the activated state is transmitted to the second device through the NFC communication connection.

2. The method according to claim 1, characterized in that: The first device has a built-in secure element SE chip, and the prop instance object is stored in the SE chip.

3. The method according to claim 2, characterized in that Also includes: Generate prop data request; Sending a prop data request to the server, wherein the prop data request is used to instruct the server to send prop data; Receive the item data sent by the server and verify the item data; After the verification is passed, the prop data is sent to the SE chip.

4. The method according to claim 3, characterized in that After sending the item data to the SE chip, the method further includes: Create an instance object in the SE chip; Writing the item data into the instance object through the SE chip to obtain the item instance object; Sets the prop instance object to the inactive state.

5. The method according to claim 2, characterized in that: Also includes: After receiving the successful reception message, the prop instance object in the SE chip and the prop data stored in the prop instance object are deleted. The successful reception message is used to indicate that the second device has successfully received the prop data.

6. The method according to claim 5, characterized in that The reception success message is sent by the second device to the SE chip, and forwarded by the SE chip to the first device; After receiving the successful reception message, deleting the prop instance object in the SE chip and the prop data stored in the prop instance object, including: After receiving the successful reception message, query the status of the prop instance object in the SE chip; When the status of the prop instance object is that the transmission is successful, the prop instance object in the SE chip and the prop data stored in the prop instance object are deleted.

7. A method for transmitting prop data, characterized in that: The method is applied to a second device, the second device having a near field communication (NFC) function, and the method includes: Establishing an NFC communication connection with the first device; The prop data transmitted by the first device is received through the NFC communication connection, the prop data is stored in the prop instance object, and the prop data is sent from the server to the first device.

8. The method according to claim 7, characterized in that Also includes: Verifying the item data; After the verification is passed, a reception success message is sent to the security component SE chip of the first device, and the reception success message is used to instruct the SE chip to record the prop instance object as successfully transmitted.

9. A prop data transmission system, characterized in that: The system includes a first device, a second device and a server, the first device has a networking function and a near field communication (NFC) function, and the first device has a near field communication (NFC) function; The first device is used to display a prop selection page, wherein the prop selection page includes a plurality of prop identifiers, wherein the prop identifiers correspond to prop instance objects in an inactive state, wherein the prop instance objects store prop data, and the prop data is sent from the server to the first device; The first device is used to set the prop instance object corresponding to the selected prop identifier to an activated state in response to a selection operation on the prop identifier, the first device includes a plurality of prop instance objects, the prop instance objects store prop data, and the prop data is sent from the server to the first device; The first device establishes an NFC communication connection with the second device; The first device transmits the prop data in the activated prop instance object to the second device through the NFC communication connection.

10. A device for transmitting prop data, characterized in that: The apparatus is configured on a first device, the first device has a networking function and a near field communication (NFC) function, and the apparatus includes: A page display module, used for displaying a prop selection page, wherein the prop selection page includes a plurality of prop identifiers, wherein the prop identifiers correspond to prop instance objects in an inactive state, wherein the prop instance objects store prop data, and wherein the prop data is sent from the server to the first device; A state setting module, configured to, in response to a selection operation on the prop identifier, set the prop instance object corresponding to the selected prop identifier to an activated state; The first data transmission module is used to transmit the prop data in the prop instance object in the activated state to the second device through the NFC communication connection after establishing the NFC communication connection with the second device.

11. A device for transmitting prop data, characterized in that: The apparatus is configured on a second device, the second device has a near field communication (NFC) function, and the apparatus includes: A connection establishing module, used to establish an NFC communication connection with the first device; The second data transmission module is used to receive the prop data transmitted by the first device through the NFC communication connection, the prop data is stored in the prop instance object, and the prop data is sent from the server to the first device.

12. An electronic device, characterized in that: The device comprises: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method for transmitting prop data as described in any one of claims 1-8.

13. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for transmitting prop data as described in any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Intelligent hardware interaction method and device based on NFC and storage medium

    CN121309667A

  • NFC-based smart hardware interaction method, device and storage medium

    CN121309667B