Near-field communication management method, device, electronic device and storage medium

By managing sign -in messages and relay registration messages on the blockchain node, determining the setting area and allocating numerical resources, solving the problem of how to inspire relay equipment and terminals to participate in near -domain communication under the condition of ensuring information security, realized it, and realized it. The decentralization and accurate capacity of the network.

CN116866876BActive Publication Date: 2025-01-28CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310840699.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-10
Publication Date
2025-01-28
Estimated Expiration
2043-07-10

AI Technical Summary

Technical Problem

On the premise of ensuring the security of relay equipment and terminal information, how to make more relay equipment and terminals actively participate in near-domain communication and realize the new creation and expansion of near-domain communication.

Method used

By receiving transactions sent by patrol terminals on the blockchain node, add sign -in messages and generate sign -in information, send this information to relay devices to determine the setting area, receive the registration message of the relay equipment and record on the blockchain. Publish numerical resources based on the distribution relationship table to the relay device account and allocate them to the sign -in terminal and patrol terminal.

Benefits of technology

In the case of ensuring information security, more relay equipment and terminals are encouraged to participate in near -domain communication, realizing the decentralization and accurate capacity expansion of the network, and the cost expansion costs are low.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116866876B_ABST
    Figure CN116866876B_ABST
Patent Text Reader

Abstract

The present disclosure provides a near-field communication management method, device, electronic device and storage medium, and relates to the field of communication technology. The method includes: obtaining multiple check-in point information according to a first transaction; sending multiple check-in point information to a relay device, so that the relay device determines the installation area according to the network status of multiple check-in terminals and the corresponding check-in terminal location information; receiving a second transaction sent by the relay device; issuing numerical resources of the target value to the relay device account according to the allocation relationship table, and issuing the numerical resources of the first value in the numerical resources of the target value to the check-in terminal located in the installation area, and issuing the numerical resources of the second value in the numerical resources of the first value to the patrol terminal that receives the check-in message sent by the check-in terminal in the installation area. The present disclosure can enable more relay devices and terminals to actively participate in near-field communication to realize the construction and expansion of near-field communication under the premise of ensuring the information security of relay devices and terminals.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Near-area communication is a new communication mode proposed by 3GPP (3rd Generation Partnership Project). It aims to provide Internet relay services for other terminals by using terminals as relay devices. Near-area communication is an important part of the development of the fifth generation mobile communication technology (5th Generation Mobile Communication Technology, 5G) and the sixth generation mobile communication technology (6th Generation Mobile Communication Technology, 6G).

[0003] In order to provide communication services to more users, the capacity of near-field communication needs to be expanded. However, the addition of relay devices is done by individuals or units on their own initiative, which results in low enthusiasm of terminals and relay devices to participate in near-field communication.

[0004] How to enable more relay devices and terminals to actively participate in near-field communication and realize the construction and expansion of near-field communication under the premise of ensuring the information security of relay devices and terminals is an urgent problem to be solved.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] The present disclosure provides a near-field communication management method, apparatus, device and medium, which can enable more relay devices and terminals to actively participate in near-field communication and realize the construction and expansion of near-field communication under the premise of ensuring the information security of relay devices and terminals.

[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0008] According to one aspect of the present disclosure, a near-field communication management method is provided, which is applied to a blockchain node, including: receiving a first transaction sent by a patrol terminal, and adding the first transaction to the blockchain, the first transaction carrying multiple check-in messages, the check-in messages being sent by the check-in terminal to the patrol terminal; obtaining multiple check-in point information according to the first transaction, the check-in point information including the check-in terminal network status and the check-in terminal location information; sending multiple check-in point information to a relay device, so that the relay device determines a setting area according to the multiple check-in terminal network statuses and the corresponding check-in terminal location information; receiving a second transaction sent by the relay device, the second transaction carrying a relay registration message, the relay registration message including a relay device account; adding the second transaction to the blockchain, issuing a target value of numerical resources to the relay device account according to an allocation relationship table, issuing a first value of the target value of the numerical resources to the check-in terminal located in the setting area, and issuing a second value of the first value of the numerical resources to the patrol terminal that receives the check-in message sent by the check-in terminal in the setting area.

[0009] In some exemplary embodiments of the present disclosure, the check-in point information also includes a check-in terminal account; wherein, after adding the first transaction to the blockchain, the method further includes: deducting the numerical resources in the check-in terminal account corresponding to each of the check-in messages.

[0010] In some exemplary embodiments of the present disclosure, the first value is a product of the target value and a first preset ratio, and the second value is a product of the first value and a second preset ratio.

[0011] In some exemplary embodiments of the present disclosure, the sign-in message includes first signature information, a first public key, a sign-in terminal account, a patrol terminal account, the sign-in terminal network status, a patrol terminal identifier, a request message sending time, a patrol terminal location information, a sign-in terminal identifier, a request message receiving time, and the sign-in terminal location information, and the first signature information is obtained by the sign-in terminal signing the sign-in terminal account, the patrol terminal account, the sign-in terminal network status, the patrol terminal identifier, the request message sending time, the patrol terminal location information, the sign-in terminal identifier, the request message receiving time, and the sign-in terminal location information through a first private key; before receiving the first transaction sent by the patrol terminal and adding the first transaction to the blockchain, the method also includes: verifying the first signature information according to the first public key, the sign-in terminal account, the patrol terminal account, the sign-in terminal network status, the patrol terminal identifier, the request message sending time, the patrol terminal location information, the sign-in terminal identifier, the request message receiving time, and the sign-in terminal location information; if the verification passes, adding the first transaction to the blockchain.

[0012] In some exemplary embodiments of the present disclosure, the relay registration message also includes second signature information, a second public key and relay device location information, and the second signature information is obtained by the relay device signing the relay device location information and the relay device account through a second private key; before adding the second transaction to the blockchain, the method also includes: verifying the second signature information according to the second public key, the relay device location information and the relay device account; if the verification passes, adding the second transaction to the blockchain.

[0013] In some exemplary embodiments of the present disclosure, the relay registration message also includes relay device location information; the allocation relationship table is generated by a computing unit based on the relay device location information, the check-in terminal location information and the check-in terminal network status, and is sent by the computing unit to the blockchain node.

[0014] According to another aspect of the present disclosure, there is provided a near-field communication management method, which is applied to a check-in terminal, and includes: receiving a check-in request message sent by a patrol terminal; when the check-in request message satisfies a message sending condition, sending a check-in message to the patrol terminal, so that the patrol terminal sends a first transaction to a blockchain node when connected to the Internet, and enables a relay device to determine a setting area based on multiple check-in point information obtained through the first transaction, wherein the first transaction carries multiple check-in messages, and the check-in point information includes the network status of the check-in terminal and the location information of the check-in terminal.

[0015] In some exemplary embodiments of the present disclosure, the sign-in request message includes the request message sending time, patrol terminal location information, patrol terminal identification information and patrol terminal account; the sign-in message is sent to the patrol terminal when the sign-in request message meets the message sending conditions, including: obtaining the sign-in terminal account, sign-in terminal identification, request message receiving time and sign-in terminal location information; determining whether the sign-in request message meets the message sending conditions based on the request message sending time, the request message receiving time, the patrol terminal location information and the sign-in terminal location information; and sending the sign-in message to the patrol terminal when the sign-in request message meets the message sending conditions.

[0016] According to another aspect of the present disclosure, a near-field communication management method is provided, which is applied to a relay device, including: receiving multiple check-in point information sent by a blockchain node, the check-in point information including a check-in network status and a check-in terminal location information, the check-in point information being generated according to a first transaction, the first transaction being sent by a patrol terminal to the blockchain node, the first transaction carrying multiple check-in messages, the check-in messages being sent by the check-in terminal to the patrol terminal; determining a setup area according to the multiple check-in network statuses and the corresponding check-in terminal location information; sending a second transaction to the blockchain node, the second transaction carrying a relay registration message including a relay device account, so that the blockchain node issues a target value of numerical resources to the relay device account according to an allocation relationship table, and issues a first value of the target value of the numerical resources to a check-in terminal located in the setup area, and issues a second value of the first value of the numerical resources to a patrol terminal that receives the check-in message sent by the check-in terminal in the setup area.

[0017] According to another aspect of the present disclosure, there is provided a near-field communication device, which is applied to a blockchain node, and the device includes: a first receiving module, which is used to receive a first transaction sent by a patrol terminal and add the first transaction to the blockchain, wherein the first transaction carries multiple check-in messages, and the check-in messages are sent from the check-in terminal to the patrol terminal; the first receiving module is also used to obtain multiple check-in point information according to the first transaction, and the check-in point information includes the network status of the check-in terminal and the location information of the check-in terminal; a first sending module is used to send the multiple check-in point information to a relay device, so that the relay device sends the multiple check-in point information according to the network status of the multiple check-in terminals. and the corresponding check-in terminal location information determines the installation area; the first receiving module is also used to receive a second transaction sent by the relay device, the second transaction carries a relay registration message, and the relay registration message includes a relay device account; a transaction module is used to add the second transaction to the blockchain, and according to the allocation relationship table, issue numerical resources of the target value to the relay device account, and issue the numerical resources of the first value among the numerical resources of the target value to the check-in terminals located in the installation area, and issue the numerical resources of the second value among the numerical resources of the first value to the patrol terminal that receives the check-in message sent by the check-in terminal in the installation area.

[0018] According to another aspect of the present disclosure, there is provided a near-field communication device, which is applied to a check-in terminal, and includes: a second receiving module, for receiving a check-in request message sent by a patrol terminal; a second sending module, for sending a check-in message to the patrol terminal when the check-in request message satisfies a message sending condition, so that the patrol terminal sends a first transaction to a blockchain node when connected to the Internet, and enables a relay device to determine a setting area according to a plurality of check-in point information obtained through the first transaction, wherein the first transaction carries a plurality of check-in messages, and the check-in point information includes a network status of the check-in terminal and location information of the check-in terminal.

[0019] According to another aspect of the present disclosure, there is provided a near-field communication device, which is applied to a relay device, and includes: a third receiving module, which is used to receive multiple check-in point information sent by a blockchain node, the check-in point information includes a check-in network status and a check-in terminal location information, and the check-in point information is generated according to a first transaction, the first transaction is sent by a patrol terminal to the blockchain node, the first transaction carries multiple check-in messages, and the check-in messages are sent by the check-in terminal to the patrol terminal; a determination module, which is used to determine a setting area according to the multiple check-in network statuses and the corresponding check-in terminal location information; a third sending module, which is used to send a second transaction to the blockchain node, the second transaction carries a relay registration message, and the relay registration message includes a relay device account, so that the blockchain node issues a target value of numerical resources to the relay device account according to an allocation relationship table, and issues a first value of the target value of the numerical resources to the check-in terminal located in the setting area, and issues a second value of the first value of the numerical resources to the patrol terminal that receives the check-in message sent by the check-in terminal in the setting area.

[0020] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any of the above-mentioned near area communication management methods by executing the executable instructions.

[0021] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, any of the above-mentioned near area communication management methods is implemented.

[0022] According to another aspect of the present disclosure, a computer program product is provided, the computer program product comprising a computer program or computer instructions, the computer program or the computer instructions being loaded and executed by a processor so that a computer implements any of the above-mentioned near area communication management methods.

[0023] The near-field communication management method, apparatus, device and medium provided by the embodiments of the present disclosure receive a first transaction sent by a patrol terminal and add the first transaction to a blockchain, wherein the first transaction carries a plurality of check-in messages, and the check-in messages are sent from the check-in terminal to the patrol terminal; based on the first transaction, a plurality of check-in point information are obtained, and the check-in point information includes the network status of the check-in terminal and the location information of the check-in terminal; the plurality of check-in point information are sent to a relay device, so that the relay device determines the installation area according to the network status of the plurality of check-in terminals and the corresponding location information of the check-in terminals; a second transaction sent by the relay device is received, wherein the second transaction carries a relay registration message, and the relay registration message includes a relay device account; the second transaction is added to the blockchain, and according to an allocation relationship table, a numerical resource of a target value is issued to the relay device account, and a numerical resource of a first value among the numerical resources of the target value is issued to a check-in terminal located in the installation area, and a numerical resource of a second value among the numerical resources of the first value is issued to a patrol terminal that receives the check-in message sent by the check-in terminal in the installation area.

[0024] The present disclosure saves the sign-in message to the blockchain through the first transaction, and saves the relay registration message to the blockchain through the second transaction, thereby ensuring the information security of the relay device and the sign-in terminal.

[0025] Furthermore, the blockchain node disclosed in the present invention allocates numerical resources to the sign-in terminals, patrol terminals and relay devices through an incentive mechanism, so that more sign-in terminals, patrol terminals and relay devices actively participate in the near-field communication, thereby further realizing the expansion of the near-field communication.

[0026] Furthermore, the present disclosure can also realize the decentralization of near-field communication, and can also realize accurate expansion of near-field communication with low expansion cost.

[0027] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0029] Figure 1 A schematic diagram showing a near field communication management system architecture in an embodiment of the present disclosure;

[0030] Figure 2 A flow chart of a near area communication management method in one embodiment of the present disclosure is shown;

[0031] Figure 3 A flow chart of a near area communication management method in another embodiment of the present disclosure is shown;

[0032] Figure 4 A flow chart of a near area communication management method in another embodiment of the present disclosure is shown;

[0033] Figure 5 A signaling diagram of a near area communication management method in an embodiment of the present disclosure is shown;

[0034] Figure 6 A schematic diagram of a near area communication management device in an embodiment of the present disclosure is shown;

[0035] Figure 7 A schematic diagram of a near area communication management device in another embodiment of the present disclosure is shown;

[0036] Figure 8 A schematic diagram of a near area communication management device in another embodiment of the present disclosure is shown;

[0037] Fig. 9 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown;

[0038] Fig.10 A schematic diagram of a computer-readable storage medium provided in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0039] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0040] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0041] The near-field communication system mainly includes two types of participants, one is the relay device that provides Internet access services for check-in terminals such as mobile phones, and the other is the user terminal that accesses the Internet through the relay device (referred to as the check-in terminal in this disclosure). Under normal circumstances, the typical networking method of near-field communication is that the relay device is connected to the Internet through a direct connection to cellular mobile communication, and the check-in terminal is connected to the relay device through wireless technologies such as wifi (wireless communication technology), and connected to the Internet through cellular communication connected by the relay device. A more complicated way is that the check-in terminal will be connected to the Internet through a multi-hop relay device.

[0042] In related technologies, wireless networks are built by operators and their network equipment is uniformly planned and expanded. This method of unified implementation by operators is difficult to achieve in near-field networks that are mainly decentralized, and has low accuracy and high costs.

[0043] Near-field communication faces the need for continuous optimization and expansion as business develops. In related technologies, the optimization and expansion of wireless networks are planned and expanded in a centralized manner. The near-field communication network itself is a decentralized or semi-decentralized network formed by people's spontaneous organization and connection. Each relay device involved can freely decide when and where to set up relay devices to provide services. Therefore, how to flexibly and quickly obtain users' needs for near-field communication is a key issue that needs to be considered in near-field communication.

[0044] The specific implementation of the embodiment of the present disclosure is described in detail below with reference to the accompanying drawings.

[0045] Figure 1 A schematic diagram showing the structure of a near area communication management system in an embodiment of the present disclosure is shown. The system can apply the near area communication management method or the near area communication management device in each embodiment of the present disclosure.

[0046] like Figure 1 As shown, the system architecture may include a check-in terminal 101, a patrol terminal 102, a blockchain node 103, a relay device 104 and a computing unit 105.

[0047] The check-in terminal 101, the patrol terminal 102, the blockchain node 103, the relay device 104 and the computing unit 105 are connected to each other through a network, which can be a wired network or a wireless network.

[0048] Optionally, the wireless network or wired network described above uses standard communication technology and / or protocol. The network is usually the Internet, but it can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged through the network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec) can also be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies can also be used to replace or supplement the above data communication technologies.

[0049] like Figure 1 As shown, the patrol terminal 102 cruises in areas where near-field communication coverage is not available or insufficient, and collects check-in messages sent by nearby check-in terminals 101 by broadcasting check-in request messages. The check-in terminal 101 returns the check-in message by responding to the request of the patrol terminal 102. The patrol terminal 102 aggregates and packages the collected multiple check-in messages and writes them into the blockchain node 103 in the form of a first transaction. For example, the first transaction is written into the user check-in management smart contract of the blockchain node 103. This contract belongs to the smart contract deployed on the blockchain node 103. The check-in message is used as the input data of the contract. The contract records a check-in point and related attributes and the network status of the check-in terminal for each check-in message.

[0050] The relay device 104 is connected to the operator's cellular network or other relay devices in the uplink, and is connected to the check-in terminal or other relay devices in the downlink through wireless technologies such as wifi. Relay devices are usually set up and operated by users or organizations other than operators. The blockchain node 103 sends multiple check-in point information to the relay device 104. The check-in point information may include the check-in terminal network status, check-in terminal location information and the relay device account, so that the relay device 104 determines the installation area based on the multiple check-in terminal network status and the corresponding check-in terminal location information. The relay device 104 sends a relay registration message to the blockchain node 103 in the form of a second transaction, and the relay registration message may include the relay device account. For example, the relay device 104 sends a relay registration message to the relay registration management smart contract in the blockchain node 103 in the form of a second transaction. This contract is a smart contract deployed on the blockchain node 103. After the new relay device 104 is successfully set up, it needs to register with this smart contract. This smart contract records and manages the relevant information of the relay device 104. The relevant information may include the relay device location information, identity information, relay device account, etc.

[0051] The calculation unit 105 may be an off-chain calculation system of the blockchain node 103. When the newly set up relay device 104 is successfully registered, the system will obtain the relay device location information and the check-in terminal location information of the nearby check-in terminals 101 that are not covered by the near-field communication to calculate which check-in terminals 101 belong to the coverage of the relay device 104, thereby determining the allocation relationship table between the relay device 104 and these check-in terminals 101, and write the allocation relationship table into the blockchain node 103. For example, the calculation unit 105 writes the allocation relationship table into the revenue sharing settlement smart contract of the blockchain node 103. This contract belongs to the smart contract deployed on the blockchain node 103, and uses the allocation relationship table calculated by the calculation unit 105 as input to record the sharing rules between each relay device 104 and the relevant terminals (check-in terminals 101 and patrol terminals 102).

[0052] It should be noted that the computing unit 105 can be a centralized computing system or a computing system composed of trusted hardware, such as a server with a trusted execution environment (TEE), depending on the degree of trust. It can also be a decentralized computing network, but the present disclosure is not limited thereto.

[0053] The blockchain node 103 distributes the numerical resources of the target value to the relay device account according to the allocation relationship table, and distributes the numerical resources of the first value among the numerical resources of the target value to the check-in terminal 101 located in the installation area, and distributes the numerical resources of the second value among the numerical resources of the first value to the patrol terminal 102 that receives the check-in message sent by the check-in terminal in the installation area.

[0054] The check-in terminal 101, the patrol terminal 102 and the relay device 104 may be various electronic devices, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, wearable devices, augmented reality devices, virtual reality devices, etc.

[0055] Optionally, the client of the application installed in different check-in terminals 101, patrol terminals 102 and relay devices 104 is the same, or is a client of the same type of application based on different operating systems. Based on different terminal platforms, the specific form of the client of the application can also be different, for example, the application client can be a mobile client, a PC client, etc.

[0056] The blockchain node 103 and the computing unit 105 may be servers that provide various services, such as a background management server that provides support for devices operated by users using the check-in terminal 101, the patrol terminal 102, and the relay device 104. The background management server may analyze and process the received request and other data, and feed back the processing results to the terminal device.

[0057] Optionally, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.

[0058] Those skilled in the art will know that Figure 1 The number of check-in terminals, patrol terminals, blockchain nodes, relay devices, and computing units is merely illustrative, and any number of check-in terminals, patrol terminals, blockchain nodes, relay devices, and computing units may be provided according to actual needs. This disclosure embodiment does not limit this.

[0059] The present exemplary implementation is described in detail below with reference to the accompanying drawings and embodiments.

[0060] First, a near-area communication management method is provided in an embodiment of the present disclosure, and the method can be executed by any electronic device with computing and processing capabilities.

[0061] Figure 2 A flow chart of a method for managing near-field communication in an embodiment of the present disclosure is shown as follows: Figure 2 As shown, applied to a blockchain node, the near-field communication management method provided in the embodiments of the present disclosure may include the following S201 to S205.

[0062] S201, receiving a first transaction sent by a patrol terminal, and adding the first transaction to a blockchain, wherein the first transaction carries a plurality of check-in messages, and the check-in messages are sent by the check-in terminal to the patrol terminal.

[0063] The check-in terminal is used to indicate a user terminal that needs to access but has not yet accessed the near-area network. The patrol terminal is used to indicate a terminal that collects check-in messages in areas where near-area communication coverage is not available or insufficient. Exemplarily, the patrol terminal can actively and periodically broadcast its check-in request message, and the check-in terminal sends the check-in message to the patrol terminal after receiving the check-in request message.

[0064] The sign-in request message may include a patrol terminal identifier, a patrol terminal account, a message sending time, and patrol terminal location information. The patrol terminal identifier is used to identify the patrol terminal information. For example, the patrol terminal identifier may be the ID (Identity) of the patrol terminal. The patrol terminal account is an account for storing numerical resources of the patrol terminal. The message sending time may be the time when the sign-in request message is sent. The patrol terminal location information is used to indicate the patrol terminal location information. For example, the patrol terminal location information may be represented by horizontal and vertical coordinates, or by longitude and latitude, but the present disclosure is not limited thereto, and other information that can represent the patrol terminal location may be used.

[0065] In the disclosed embodiment, after the check-in terminal receives the check-in request message sent by the patrol terminal, it packages the information contained in the check-in request message (patrol terminal account, patrol terminal identifier, request message sending time, patrol terminal location information) and the information related to the check-in terminal (such as the check-in terminal account, check-in terminal network status, check-in terminal identifier, request message receiving time and check-in terminal location information) to obtain a check-in message.

[0066] Exemplarily, the sign-in message may include first signature information, a first public key, a sign-in terminal account, a patrol terminal account, a sign-in terminal network status, a patrol terminal identifier, a request message sending time, a patrol terminal location information, a sign-in terminal identifier, a request message receiving time, and a sign-in terminal location information. The first signature information is obtained by the sign-in terminal using the first private key to sign the sign-in terminal account, the patrol terminal account, the sign-in terminal network status, the patrol terminal identifier, the request message sending time, the patrol terminal location information, the sign-in terminal identifier, the request message receiving time, and the sign-in terminal location information.

[0067] Before receiving the first transaction sent by the patrol terminal and adding the first transaction to the blockchain, the near-field communication management method may further include the following steps A1 and A2.

[0068] Step A1, verify the first signature information according to the first public key, check-in terminal account, patrol terminal account, check-in terminal network status, patrol terminal identifier, request message sending time, patrol terminal location information, check-in terminal identifier, request message receiving time and check-in terminal location information.

[0069] In the embodiment of the present disclosure, the check-in terminal account is used to store the account of the numerical resource of the check-in terminal. The check-in terminal location information is used to indicate the information of the check-in terminal location. The check-in terminal network status is used to characterize the network connection status of the check-in terminal. The check-in terminal identifier can be the ID of the check-in terminal. The request message receiving time can be the time when the check-in request message is received.

[0070] The first private key is used to sign the check-in terminal account, patrol terminal account, check-in terminal network status, patrol terminal identifier, request message sending time, patrol terminal location information, check-in terminal identifier, request message receiving time, and check-in terminal location information, that is, to encrypt the above data. The first signature information obtained by signing, the first public key used to verify the first signature information, and the check-in terminal account, patrol terminal account, check-in terminal network status, patrol terminal identifier, request message sending time, patrol terminal location information, check-in terminal identifier, request message receiving time, and check-in terminal location information are packaged and sent to the blockchain node via the patrol terminal in the form of a first transaction, and the blockchain node verifies the above data.

[0071] Step A2: If the signature verification is successful, the first transaction is added to the blockchain.

[0072] The first signature information is decrypted by the first public key, and the decrypted data is compared with the check-in terminal account, patrol terminal account, check-in terminal network status, patrol terminal identifier, request message sending time, patrol terminal location information, check-in terminal identifier, request message receiving time, and check-in terminal location information. If they are consistent, the signature verification is passed, which means that the data is accurate, and the accurate data is added to the blockchain, which increases the security of the data. The present disclosure can increase the reliability and accuracy of data by sending it in the form of a first transaction.

[0073] S202, according to the first transaction, obtain a plurality of check-in point information, the check-in point information including the check-in terminal network status and the check-in terminal location information.

[0074] The sign-in message serves as the input data of the user sign-in management smart contract of the blockchain node. The contract records a sign-in point for each sign-in message. The attribute information related to the sign-in point may include the information of the sign-in terminal corresponding to the sign-in message (such as the information contained in the sign-in message) and the attributes related to it (such as the information of the relay device that provides the network to the sign-in terminal corresponding to the sign-in point). Exemplarily, after the sign-in message is uploaded to the chain in the form of a first transaction, the user sign-in management smart contract will set a sign-in point and set the attribute information related to the sign-in point. The attribute information may include the sign-in terminal account, patrol terminal account, sign-in terminal location information, sign-in time, and sign-in terminal network status (initially set to uncovered). For example, when the sign-in terminal network status is 0, it means that the network is not covered. When the sign-in terminal network status is 1, it means that the network is covered.

[0075] S203, sending a plurality of check-in point information to the relay device, so that the relay device determines the installation area according to the network status of the plurality of check-in terminals and the corresponding check-in terminal location information.

[0076] The check-in terminal actively reports the check-in message to inform the blockchain node that its location needs to be covered by near-field communication, providing data reference for the location of the relay device. After the relay device refers to the check-in point information, if the area covered by the installation location covers the coordinates of the check-in point, the subsequent numerical resource income brought by the relay service provided by the relay device will be divided into these covered check-in terminals according to a calculated ratio as a reward, which can attract more check-in terminals to actively report the coverage requirements of near-field communication. Exemplarily, the relay device is set up in a place where the network status of the check-in terminal is relatively concentrated in the uncovered state.

[0077] The installation area is the area where the relay device can communicate. For example, a circular area with a radius of 100 meters (m) with the location of the relay device as the center is the installation area of ​​the relay device.

[0078] The present disclosure does not limit how to select a relay device. For example, a relay device with more numerical resources in a relay device account is selected from multiple relay devices to be selected as a target relay device for installation. It should be noted that the relay device can be a terminal, for example, the relay device can be one of terminals such as a mobile phone, a computer, and a tablet. The relay device can also be a network device, for example, the relay device can be one of network devices such as a base station, a network card, and a router.

[0079] S204, receiving a second transaction sent by the relay device, where the second transaction carries a relay registration message, and the relay registration message includes a relay device account.

[0080] The relay device account is an account used to store the numerical resources of the relay device.

[0081] Exemplarily, the relay registration message may also include second signature information, a second public key, and relay device location information, where the second signature information is obtained by the relay device signing the relay device location information and the relay device account using the second private key. The relay device location information is used to characterize the location of the relay device.

[0082] Before adding the second transaction to the blockchain, the method may further include the following steps B1 and B2.

[0083] Step B1, verifying the second signature information according to the second public key, the relay device location information and the relay device account.

[0084] The second signature information is decrypted by the second public key, and it is determined whether the decrypted data is consistent with the relay device location information and the relay device account. If they are consistent, the signature verification is successful. If they are inconsistent, the signature verification fails.

[0085] Step B2: If the signature verification is successful, add the second transaction to the blockchain.

[0086] The disclosed embodiment can increase the reliability and accuracy of data by sending it in the form of a second transaction.

[0087] In the disclosed embodiment, when the relay device is ready to join the near-field network to provide services, a large amount of check-in point information on the blockchain will be checked and analyzed. If it is found that a large number of check-in points in a certain area have not been covered by the relay for a long time (indicated by the "check-in terminal network status" value), the relay device can use this area as an important reference area for setting up the relay device. After referring to the check-in point information, the relay device chooses to set up in a certain setting area. The set-up relay device sends a second transaction to the blockchain node. The second transaction may include a relay registration message. The relay registration message may include the relay device account, the relay device location information, and the second signature information signed for this information. After the blockchain node verifies the intermediate registration message, it calls the relay registration management smart contract to complete the on-chain registration operation for this relay device. The operation may include recording the relay device account, terminal device location information, registration time, etc.

[0088] S205, adding the second transaction to the blockchain, issuing numerical resources of the target value to the relay device account according to the allocation relationship table, issuing numerical resources of the first value among the numerical resources of the target value to the check-in terminal located in the installation area, and issuing numerical resources of the second value among the numerical resources of the first value to the patrol terminal that receives the check-in message sent by the check-in terminal in the installation area.

[0089] The sign-in terminal account corresponds to the sign-in terminal one by one, that is, each sign-in terminal has its own sign-in terminal account for storing numerical resources. The numerical resources are used to indicate the value or reliability of the sign-in terminal. The larger the value of the numerical resource, the higher the value or reliability.

[0090] The allocation relationship table is used to indicate the allocation ratio of numerical resources. For example, it is assumed that the check-in terminal network status and check-in terminal location information obtained by the relay device are forwarded by two patrol terminals, and each patrol terminal collects check-in messages sent by five check-in terminals. When the value of the numerical resource allocated to the relay device is 100, 20 of the 100 are respectively given to 10 check-in terminals, and 10 of the 20 are allocated to the patrol terminal. The numerical resources added in the relay device are 80, the numerical resources added in each patrol terminal are 5, and the numerical resources added to each check-in terminal are 1. In this example, the first value is 20 and the second value is 10. In this embodiment, the value of the numerical resource obtained by each patrol terminal is equal, and the value of the numerical resource obtained by each check-in terminal is equal, but the present disclosure is not limited to this.

[0091] The disclosed embodiment saves the sign-in message to the blockchain through the first transaction, and saves the relay registration message to the blockchain through the second transaction, thereby ensuring the information security of the relay device and the sign-in terminal.

[0092] In the embodiment of the present disclosure, the blockchain node allocates numerical resources to the sign-in terminal, patrol terminal and relay device through an incentive mechanism, so that more sign-in terminals, patrol terminals and relay devices actively participate in the near-field communication, and further realize the expansion of the near-field communication. The present disclosure can also realize the decentralization of the near-field communication, and also realize the accurate expansion of the near-field communication, and the expansion cost is low.

[0093] In an exemplary embodiment, the check-in point information may also include a check-in terminal account. After adding the first transaction to the blockchain, the method may further include: deducting the numerical resource in the check-in terminal account corresponding to each check-in message.

[0094] In the disclosed embodiment, once the sign-in message is uploaded to the chain, the account of the sign-in terminal that sends the sign-in message will be directly deducted by the blockchain node for the small amount of numerical resources required for the sign-in message to be uploaded to the chain.

[0095] It should be noted that when the sign-in message of the sign-in terminal is added to the blockchain, a small amount of numerical resources will be deducted. If no numerical resources are deducted, the malicious sign-in terminal will attack the blockchain node at no cost.

[0096] In another exemplary embodiment, the first value is a product of the target value and a first preset ratio, and the second value is a product of the first value and a second preset ratio.

[0097] The first preset ratio and the second preset ratio can be set according to actual application scenarios and application needs.

[0098] Exemplarily, the newly added numerical resource value of the check-in terminal that provides the check-in message for the relay device is as follows:

[0099] As shown in formula 1.

[0100]

[0101] Among them, g (Xi,Ti) is the newly added numerical resource value of the i-th sign-in terminal among the n sign-in terminals that provide sign-in messages for the installation of the relay device, G is the target value, f% is the ratio of the first value to the target value (the first preset ratio), M (Xi,Ti) It is the deduction value of the i-th check-in terminal when adding the first transaction to the blockchain, 0<i≤n, i, n are both positive integers, X represents the check-in terminal, and T represents the time of sending the check-in message to the patrol terminal.

[0102] Exemplarily, the newly added numerical resource value of the patrol terminal that provides a check-in message for the installation of the relay device is shown in Formula 2 below.

[0103] h (Xj,Tj) =(g (X1,T1) +g (X2,T2) +…+g (Xm,Tm) )×h% (2)

[0104] Among them, h (Xj,Tj) is the newly added numerical resource value of the jth patrol terminal among the k patrol terminals that provide sign-in messages for the installation of relay equipment, h% is the ratio of the second value to the first value (the second preset ratio), and m is the total number of sign-in terminals that send sign-in messages to the jth patrol terminal, wherein 0<j≤k, j, k and m are all positive integers, X represents the sign-in terminal, and T represents the time of sending the sign-in message to the patrol terminal.

[0105] In the disclosed embodiment, the sign-in terminal will actively report its sign-in message because of the existence of the reward value resources. However, since reporting the sign-in message requires a little cost, it can largely prevent the situation of over-reporting. The sign-in terminal user will only report when he finds that he really needs near-field communication coverage or really thinks that a certain area needs near-field communication coverage. In addition, patrol terminals and relay devices will also actively participate because of the reward value resources, thus realizing the optimization and construction and expansion of the near-field communication network through the decentralized blockchain node method.

[0106] The embodiment of the present disclosure calculates the amount of allocated numerical resources according to the amount of numerical resource value deducted from the sign-in terminal, and allocates according to the actual situation, so that the allocation is more reasonable. By increasing the numerical resources, the sign-in terminal, patrol terminal and relay device actively participate in the near-field communication, thereby realizing the expansion of the near-field communication.

[0107] In another exemplary embodiment, the relay registration message also includes the relay device location information. The allocation relationship table is generated by the calculation unit according to the relay device location information, the check-in terminal location information and the check-in terminal network status, and is sent to the blockchain node by the calculation unit.

[0108] In the disclosed embodiment, when the newly installed relay device is successfully registered, the chain data calculation unit obtains the relay device account and relay device location information from the relay registration management smart contract of the blockchain node, and obtains all the check-in point information in the installation area that is not covered from the user check-in management smart contract. After obtaining the above two types of information, the calculation unit (also known as the chain data calculation unit) calculates all the check-in points in the coverage area of ​​the relay device (assuming that the circle with a radius of 100m and the coordinates of the relay device as the center) that are not covered. These check-in points can enjoy the share of the numerical resource income obtained by the relay device for subsequent relay services. Therefore, the chain data calculation unit will also calculate the specific sharing rules between each check-in point and the relay, and write them into the blockchain node in the form of an allocation relationship table (by calling the income sharing settlement smart contract to complete the chain operation). In the future, when the relay device account on the blockchain obtains each income, the income sharing settlement smart contract will automatically transfer the share to the accounts of the relevant check-in terminals and patrol terminals according to the rules of the chain.

[0109] After the computing unit sends the allocation relationship table to the blockchain node, it calls the user check-in management smart contract to set the covered status of all check-in points participating in the sharing from 0 to 1.

[0110] In the disclosed embodiment, in order to ensure that each relay device in the near-field network can provide services stably, an effective incentive mechanism needs to be formulated to measure the services provided by the relay devices and thus give numerical resource rewards. The blockchain node can record the service measurement data confirmed by multiple parties through a consensus mechanism, and automatically distribute numerical resources without trusting a third party.

[0111] In addition, the embodiment of the present disclosure helps to reduce the computing power of the blockchain node by generating an allocation relationship table on the computing unit, thereby improving the stability of the operation of the blockchain node.

[0112] In the blockchain-based model, the number of services provided by the relay device to the downstream terminal will be measured, and then the measured number of services will be written into the blockchain. The blockchain smart contract will give the specific settlement fee, and at the same time as the settlement, the numerical resources will be sent to the blockchain account of the relay device (relay device account). The measured service here can be a flow service or a duration service.

[0113] The disclosed embodiment realizes decentralized network optimization and expansion based on the blockchain incentive mechanism, and helps the relay device to obtain the user coverage requirements of near-field communication quickly, accurately and at low cost. The disclosed user terminal (here referred to as the check-in terminal) regularly reports its coverage requirements for near-field communication to the patrol terminal cruising around, and then the patrol terminal uniformly reports to the blockchain node for data recording. The relay device can obtain the check-in point information to decide whether to set up a relay device nearby. If the installation is successful, the check-in terminal and patrol terminal that provide coverage demand data reference for this installation and expansion will provide numerical resources, so they can automatically obtain a part of the numerical resources through the blockchain smart contract in the subsequent income of this relay device. In this way, through the blockchain incentive mechanism, the check-in terminal, patrol terminal and relay device will actively participate in the expression of near-field communication coverage requirements, helping the network to quickly and efficiently expand and optimize.

[0114] Based on the same inventive concept, the present disclosure also provides a near-field communication management method, as described in the following embodiments. Since the principle of solving the problem in the method embodiment is similar to that in the above method embodiment, the implementation of the method embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.

[0115] Figure 3 A flow chart of a near-field communication management method in another embodiment of the present disclosure is shown as follows: Figure 3 As shown, the near area communication management method provided in the embodiment of the present disclosure is applied to a check-in terminal and may include the following S301 and S302.

[0116] S301, receiving a check-in request message sent by a patrol terminal.

[0117] In the disclosed embodiment, a check-in terminal with a check-in requirement sets its own terminal device to a check-in request listening state to capture a check-in request message broadcasted by a nearby patrol terminal.

[0118] S302, when the check-in request message meets the message sending conditions, sends a check-in message to the patrol terminal, so that the patrol terminal sends the first transaction to the blockchain node when connected to the Internet, and enables the relay device to determine the installation area according to the multiple check-in point information obtained through the first transaction, wherein the first transaction carries multiple check-in messages, and the check-in point information includes the check-in terminal network status and the check-in terminal location information.

[0119] In the disclosed embodiment, during the patrol process, the patrol terminal actively and periodically broadcasts its own sign-in request message, which may include the patrol terminal identifier, patrol terminal account, message sending time, and patrol terminal location information (such as the satellite positioning coordinates of the patrol terminal). After receiving the sign-in request message, the sign-in terminal records its own receiving time, and measures whether the distance between the two coordinates is reasonable based on the difference between the sending time and the receiving time (to prevent fake patrol terminals). If reasonable, the sign-in terminal broadcasts its own sign-in message. If the request message is found to be unreasonable, the sign-in request message is discarded.

[0120] When other sign-in terminals receive other broadcasted sign-in messages, they will automatically discard the message. After the patrol device receives the sign-in message, it is stored locally in the patrol terminal. When the patrol terminal can connect to the Internet, it will aggregate and package the previously collected sign-in messages and send them to the blockchain node. The blockchain node will verify and reach consensus on the first signature information of the sign-in message, and call the user sign-in management smart contract to complete the on-chain operation of the sign-in message.

[0121] The disclosed embodiment saves the sign-in message to the blockchain through the first transaction, thereby ensuring the information security of the relay device and the sign-in terminal. The disclosed embodiment verifies the sign-in request message sent by the patrol device, thereby ensuring the reliability of the sign-in request message and eliminating fake patrol terminals.

[0122] In an exemplary embodiment, the sign-in request message includes the request message sending time, patrol terminal location information, patrol terminal identification information and patrol terminal account. When the sign-in request message meets the message sending condition, sending the sign-in message to the patrol terminal may include the following steps C1 to C3.

[0123] Step C1, obtaining the check-in terminal account, check-in terminal identification, request message receiving time and check-in terminal location information.

[0124] Step C2, determining whether the sign-in request message meets the message sending condition according to the request message sending time, the request message receiving time, the patrol terminal location information and the sign-in terminal location information.

[0125] In the disclosed embodiment, the transmission time of the request message can be obtained by subtracting the sending time of the request message from the receiving time of the request message, and the propagation distance can be calculated according to the propagation speed of the request message. The actual distance between the patrol terminal and the sign-in terminal can be calculated according to the patrol terminal location information and the sign-in terminal location information. If the difference between the propagation distance and the actual distance is less than the distance threshold, it means that the sending condition is met and the sign-in request message is considered to be reliable. If the difference between the propagation distance and the actual distance is greater than or equal to the distance threshold, the sign-in request message is considered to be unreliable and needs to be discarded. Exemplarily, the propagation speed can be the speed of radio signal propagation, such as 299792458 meters per second.

[0126] Step C3: When the sign-in request message meets the message sending condition, the sign-in message is sent to the patrol terminal.

[0127] The disclosed embodiment can screen the sign-in request information, thereby ensuring the reliability of the patrol terminal, and sending the request message to the reliable patrol terminal can prevent the loss of the request message.

[0128] Based on the same inventive concept, the present disclosure also provides a near-field communication management method, as described in the following embodiments. Since the principle of solving the problem in the method embodiment is similar to that in the above method embodiment, the implementation of the method embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.

[0129] Figure 4 A flow chart of a near area communication management method in another embodiment of the present disclosure is shown as follows: Figure 4 As shown, the near area communication management method provided in the embodiment of the present disclosure is applied to a relay device and may include the following S401 to S403.

[0130] S401, receiving multiple check-in point information sent by the blockchain node, the check-in point information includes the check-in network status and the check-in terminal location information, the check-in point information is generated according to the first transaction, the first transaction is sent by the patrol terminal to the blockchain node, the first transaction carries multiple check-in messages, and the check-in messages are sent by the check-in terminal to the patrol terminal.

[0131] S402: Determine a setting area according to a plurality of sign-in network states and corresponding sign-in terminal location information.

[0132] S403, sending a second transaction to the blockchain node, the second transaction carrying a relay registration message, the relay registration message including a relay device account, so that the blockchain node issues numerical resources of the target value to the relay device account according to the allocation relationship table, and issues numerical resources of a first value among the numerical resources of the target value to the check-in terminal located in the installation area, and issues numerical resources of a second value among the numerical resources of the first value to the patrol terminal that receives the check-in message sent by the check-in terminal in the installation area.

[0133] The disclosed embodiment saves the sign-in message to the blockchain through the first transaction, thereby ensuring the information security of the relay device and the sign-in terminal. In addition, the disclosed embodiment determines the installation area through multiple sign-in network states and corresponding sign-in terminal location information, thereby ensuring the reliability of the installation area.

[0134] Figure 5 A signaling diagram of a near-field communication management method in an embodiment of the present disclosure is shown. Figure 5 As shown, the method may include S501 to S512.

[0135] S501: The patrol terminal sends a sign-in request message to the sign-in terminal.

[0136] S502: When the sign-in request message meets the message sending condition, the sign-in message is sent to the patrol terminal.

[0137] S503, the patrol terminal sends a first transaction to the blockchain node, and the first transaction carries multiple check-in messages.

[0138] S504, the blockchain node adds the first transaction to the blockchain, and deducts the numerical resources in the sign-in terminal account corresponding to each sign-in message.

[0139] S505, the blockchain node sends multiple check-in point information to the relay device, where the check-in point information includes the check-in terminal network status, the check-in terminal location information and the relay device account.

[0140] S506: The relay device determines an installation area according to the network status of the plurality of check-in terminals and the corresponding location information of the check-in terminals.

[0141] S507, the relay device sends a second transaction to the blockchain node, the second transaction carries a relay registration message, and the relay registration message includes the relay device account.

[0142] S508, the blockchain node adds the second transaction to the blockchain.

[0143] S509, the blockchain node sends a relay registration message and check-in point information to the computing unit.

[0144] S510, a calculation unit generates an allocation relationship table according to the relay registration message and the check-in point information.

[0145] S511, the computing unit sends the allocation relationship table to the blockchain node.

[0146] S512, the blockchain node distributes the numerical resources of the target value to the relay device account according to the allocation relationship table, and distributes the numerical resources of the first value among the numerical resources of the target value to the check-in terminal located in the installation area, and distributes the numerical resources of the second value among the numerical resources of the first value to the patrol terminal that receives the check-in message sent by the check-in terminal in the installation area.

[0147] The present disclosure is further described below through examples.

[0148] Assume that the check-in terminal X1 sends a check-in message containing the check-in terminal coordinate information (a, b) to the patrol terminal Y at time T1. The check-in message is broadcast to the blockchain network as a transaction message of the blockchain node, and is recorded in the blockchain ledger through the user check-in management smart contract. The check-in terminal account of the check-in terminal X1 is deducted M (X1,T1) Numerical resources are used as handling fees. The user sign-in management smart contract generates a sign-in point P on the chain. (X1,T1) , its related attributes may include the sign-in terminal account A X1 , Patrol terminal account location A Y , check-in terminal coordinate information (a, b), check-in message sending time T1, check-in terminal network status 0 (0 is not covered, 1 is covered). As other check-in terminals near check-in terminal X1 continue to send such check-in messages, the relay device provider discovers through the blockchain node that there are many check-in points with a coverage status of 0 in this area, so a relay device Z is set up in this area. After being set up, relay device Z registers with the relay registration management smart contract of the blockchain node and provides its own related address account and relay device location information (i, j). After the new relay device is registered, the computing unit obtains (i, j) and (a, b) from the smart contract on the blockchain node. After analysis, it is found that the geographical distance between (i, j) and (a, b) is within 100m, so it is determined that P (X1,T1) In the same way, the calculation unit also finds that P (X2,T2) ...P (Xn,Tn) It is also within the coverage of Z. In this way, the calculation unit is Z and P (X1,T1) ...P (Xn,Tn) The specific table is as follows: Assume that Z obtains a sum of G points, f% of which will be divided and settled to all check-in points, among which P (Xn,Tn) The account of the check-in terminal associated with the check-in point will receive Of which h% will be allocated to P (Xn,Tn) Associated patrol equipment, i.e. g (Xn,Tn) *h%. The calculation unit writes this settlement rule into the revenue sharing settlement smart contract of the blockchain node. Therefore, every time Z's account on the blockchain obtains a numerical resource, the blockchain node will transfer the specified part of the income directly to the accounts of the check-in terminal and the patrol terminal according to this sharing settlement rule (allocation relationship table).

[0149] Based on the same inventive concept, the present disclosure also provides a near-field communication management device, as described in the following embodiments. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.

[0150] Figure 6 A schematic diagram of a near area communication management device in an embodiment of the present disclosure is shown. Figure 6 As shown, applied to a blockchain node, the near-field communication management device may include a first receiving module 61, a first sending module 62 and a transaction module 63. The first receiving module 61 can be used to receive a first transaction sent by a patrol terminal and add the first transaction to the blockchain, the first transaction carries multiple check-in messages, and the check-in messages are sent from the check-in terminal to the patrol terminal; the first receiving module 61 can also be used to obtain multiple check-in point information according to the first transaction, and the check-in point information includes the check-in terminal network status and the check-in terminal location information; the first sending module 62 can be used to send multiple check-in point information to the relay device, so that the relay device determines the installation area according to the multiple check-in terminal network status and the corresponding check-in terminal location information; the first receiving module 61 can also be used to receive a second transaction sent by the relay device, the second transaction carries a relay registration message, and the relay registration message includes the relay device account; the transaction module 63 can be used to add the second transaction to the blockchain, according to the allocation relationship table, issue the target value of the numerical resources to the relay device account, and issue the first value of the numerical resources of the target value to the check-in terminal located in the installation area, and issue the second value of the numerical resources of the first value to the patrol terminal that receives the check-in message sent by the check-in terminal in the installation area.

[0151] In one embodiment, the check-in point information also includes a check-in terminal account; wherein, after adding the first transaction to the blockchain, the transaction module 63 can also be used to deduct the numerical resources in the check-in terminal account corresponding to each check-in message.

[0152] In one embodiment, the first value is the product of the target value and a first preset ratio, and the second value is the product of the first value and a second preset ratio.

[0153] In one embodiment, the sign-in message includes the first signature information, the first public key, the sign-in terminal account, the patrol terminal account, the sign-in terminal network status, the patrol terminal identifier, the request message sending time, the patrol terminal location information, the sign-in terminal identifier, the request message receiving time and the sign-in terminal location information. The first signature information is obtained by the sign-in terminal using the first private key to sign the sign-in terminal account, the patrol terminal account, the sign-in terminal network status, the patrol terminal identifier, the request message sending time, the patrol terminal location information, the sign-in terminal identifier, the request message receiving time and the sign-in terminal location information. Before receiving the first transaction sent by the patrol terminal and adding the first transaction to the blockchain, the first receiving module 61 can also be used to verify the first signature information according to the first public key, the sign-in terminal account, the patrol terminal account, the sign-in terminal network status, the patrol terminal identifier, the request message sending time, the patrol terminal location information, the sign-in terminal identifier, the request message receiving time and the sign-in terminal location information; if the verification is passed, the first transaction is added to the blockchain.

[0154] In one embodiment, the relay registration message also includes second signature information, a second public key, and relay device location information, and the second signature information is obtained by the relay device signing the relay device location information and the relay device account using the second private key. Before adding the second transaction to the blockchain, the first receiving module 61 can also be used to verify the second signature information according to the second public key, the relay device location information, and the relay device account; if the verification passes, the second transaction is added to the blockchain.

[0155] In one embodiment, the relay registration message also includes relay device location information; the allocation relationship table is generated by a computing unit based on the relay device location information, the check-in terminal location information, and the check-in terminal network status, and is sent to the blockchain node by the computing unit.

[0156] The near-field communication management device disclosed in the embodiment of the present disclosure saves the sign-in message to the blockchain through the first transaction, and saves the relay registration message to the blockchain through the second transaction, thereby ensuring the information security of the relay device and the sign-in terminal. The blockchain node of the present disclosure uses an incentive mechanism to allocate numerical resources to the sign-in terminal, patrol terminal and relay device, so that more sign-in terminals, patrol terminals and relay devices actively participate in near-field communication, further realizing the expansion of near-field communication. The present disclosure can also realize the decentralization of near-field communication, and also realize the accurate expansion of near-field communication, and the expansion cost is low.

[0157] Based on the same inventive concept, the present disclosure also provides a near-field communication management device, such as the following embodiment. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.

[0158] Figure 7 A schematic diagram of a near area communication management device in another embodiment of the present disclosure is shown. Figure 7 As shown, when applied to a check-in terminal, the device may include a second receiving module 71 and a second sending module 72. The second receiving module 71 may be used to receive a check-in request message sent by a patrol terminal; the second sending module 72 may be used to send a check-in message to the patrol terminal when the check-in request message meets the message sending conditions, so that the patrol terminal sends the first transaction to the blockchain node when connected to the Internet, and the relay device determines the installation area according to the multiple check-in point information obtained through the first transaction, wherein the first transaction carries multiple check-in messages, and the check-in point information includes the check-in terminal network status and the check-in terminal location information.

[0159] In one embodiment, the sign-in request message includes the request message sending time, patrol terminal location information, patrol terminal identification information and patrol terminal account. The second sending module 72 can also be used to obtain the sign-in terminal account, sign-in terminal identification, request message receiving time and sign-in terminal location information; determine whether the sign-in request message meets the message sending conditions according to the request message sending time, request message receiving time, patrol terminal location information and sign-in terminal location information; if the sign-in request message meets the message sending conditions, send the sign-in message to the patrol terminal.

[0160] The near-field communication management device of the disclosed embodiment saves the sign-in message to the blockchain through the first transaction, thereby ensuring the information security of the relay device and the sign-in terminal. The disclosed embodiment verifies the sign-in request message sent by the patrol device, thereby ensuring the reliability of the sign-in request message and eliminating fake patrol terminals.

[0161] Based on the same inventive concept, the present disclosure also provides a near-field communication management device, such as the following embodiment. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.

[0162] Figure 8 A schematic diagram of a near area communication management device in another embodiment of the present disclosure is shown. Figure 8 As shown, applied to a relay device, the apparatus may include a third receiving module 81 , a determining module 82 and a third sending module 83 .

[0163] The third receiving module 81 can be used to receive multiple check-in point information sent by the blockchain node, the check-in point information includes the check-in network status and the check-in terminal location information, the check-in point information is generated according to the first transaction, the first transaction is sent by the patrol terminal to the blockchain node, the first transaction carries multiple check-in messages, and the check-in messages are sent from the check-in terminal to the patrol terminal; the determination module 82 can be used to determine the installation area according to the multiple check-in network status and the corresponding check-in terminal location information; the third sending module 83 can be used to send a second transaction to the blockchain node, the second transaction carries a relay registration message, and the relay registration message includes a relay device account, so that the blockchain node issues the target value of the numerical resources to the relay device account according to the allocation relationship table, and issues the first value of the numerical resources of the target value to the check-in terminal located in the installation area, and issues the second value of the numerical resources of the first value to the patrol terminal that receives the check-in message sent by the check-in terminal in the installation area.

[0164] The near-field communication management device of the disclosed embodiment saves the sign-in message to the blockchain through the first transaction, thereby ensuring the information security of the relay device and the sign-in terminal. In addition, the disclosed embodiment determines the installation area through multiple sign-in network states and corresponding sign-in terminal location information, thereby ensuring the reliability of the installation area.

[0165] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0166] Refer to the following Fig. 9 The electronic device 900 according to this embodiment of the present disclosure is described. Fig. 9 The electronic device 900 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0167] like Fig. 9 As shown, the electronic device 900 is in the form of a general computing device. The components of the electronic device 900 may include but are not limited to: at least one processing unit 910, at least one storage unit 920, and a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910).

[0168] The storage unit stores program codes, which can be executed by the processing unit 910, so that the processing unit 910 executes the steps described in the above “Exemplary Method” section of this specification according to various exemplary embodiments of the present disclosure.

[0169] The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 9201 and / or a cache storage unit 9202 , and may further include a read-only storage unit (ROM) 9203 .

[0170] The storage unit 920 may also include a program / utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0171] Bus 930 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0172] The electronic device 900 may also communicate with one or more external devices 940 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 900, and / or may communicate with any device that enables the electronic device 900 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 950. Furthermore, the electronic device 900 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 960. As shown, the network adapter 960 communicates with other modules of the electronic device 900 via a bus 930. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0173] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0174] In the disclosed exemplary embodiments, a computer-readable storage medium is also provided, which may be a readable signal medium or a readable storage medium. Fig.10 A schematic diagram of a computer-readable storage medium in an embodiment of the present disclosure is shown. Fig.10 As shown, the computer-readable storage medium 1000 stores a program product capable of implementing the above method of the present disclosure.

[0175] In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of various exemplary implementations of the present disclosure described in the above "Specific Implementation Methods" section of this specification.

[0176] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0177] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0178] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0179] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0180] The embodiments of the present disclosure provide a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the near-field communication management method provided in various optional ways in any embodiment of the present disclosure.

[0181] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0182] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0183] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0184] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The description and examples are to be regarded as exemplary only, and the true scope of the present disclosure is indicated by the appended claims.

Claims

1. A method for managing near-field communication, characterized in that: Applied to blockchain nodes, including: Receiving a first transaction sent by a patrol terminal, and adding the first transaction to a blockchain, wherein the first transaction carries a plurality of sign-in messages, and the sign-in messages are sent by the sign-in terminal to the patrol terminal; According to the first transaction, a plurality of check-in point information is obtained, wherein the check-in point information includes a check-in terminal network status and a check-in terminal location information; Sending the plurality of check-in point information to a relay device, so that the relay device determines the installation area according to the network status of the plurality of check-in terminals and the corresponding location information of the check-in terminals; receiving a second transaction sent by the relay device, where the second transaction carries a relay registration message, and the relay registration message includes a relay device account; The second transaction is added to the blockchain, and according to the allocation relationship table, numerical resources of the target value are issued to the relay device account, and numerical resources of a first value among the numerical resources of the target value are issued to the check-in terminals located in the installation area, and numerical resources of a second value among the numerical resources of the first value are issued to the patrol terminal that receives the check-in message sent by the check-in terminal in the installation area.

2. The method according to claim 1, characterized in that The check-in point information also includes the check-in terminal account; Wherein, after adding the first transaction to the blockchain, the method further includes: The numerical resource in the sign-in terminal account corresponding to each sign-in message is deducted.

3. The method according to claim 1, characterized in that The first value is the product of the target value and a first preset ratio, and the second value is the product of the first value and a second preset ratio.

4. The method according to claim 1, characterized in that: The sign-in message includes first signature information, a first public key, a sign-in terminal account, a patrol terminal account, the sign-in terminal network status, a patrol terminal identifier, a request message sending time, patrol terminal location information, a sign-in terminal identifier, a request message receiving time, and the sign-in terminal location information, and the first signature information is obtained by the sign-in terminal signing the sign-in terminal account, the patrol terminal account, the sign-in terminal network status, the patrol terminal identifier, the request message sending time, the patrol terminal location information, the sign-in terminal identifier, the request message receiving time, and the sign-in terminal location information using a first private key; Before receiving the first transaction sent by the patrol terminal and adding the first transaction to the blockchain, the method further includes: Verify the first signature information according to the first public key, the sign-in terminal account, the patrol terminal account, the sign-in terminal network status, the patrol terminal identifier, the request message sending time, the patrol terminal location information, the sign-in terminal identifier, the request message receiving time and the sign-in terminal location information; If the signature verification is passed, the first transaction is added to the blockchain.

5. The method according to claim 1, characterized in that The relay registration message also includes second signature information, a second public key and relay device location information, where the second signature information is obtained by the relay device signing the relay device location information and the relay device account using a second private key; Before adding the second transaction to the blockchain, the method further includes: Verifying the second signature information according to the second public key, the relay device location information and the relay device account; If the signature verification is successful, the second transaction is added to the blockchain.

6. The method according to claim 1, characterized in that The relay registration message also includes relay device location information; The allocation relationship table is generated by a computing unit according to the relay device location information, the check-in terminal location information and the check-in terminal network status, and is sent by the computing unit to the blockchain node.

7. A method for managing near-field communications, characterized in that: Applied to the sign-in terminal, including: Receive a check-in request message sent by a patrol terminal; When the check-in request message meets the message sending conditions, a check-in message is sent to the patrol terminal, so that the patrol terminal sends the first transaction to the blockchain node when connected to the Internet, and the relay device determines the installation area according to the multiple check-in point information obtained through the first transaction, wherein the first transaction carries multiple check-in messages, and the check-in point information includes the network status of the check-in terminal and the location information of the check-in terminal.

8. The method according to claim 7, characterized in that The sign-in request message includes the time when the request message is sent, the patrol terminal location information, the patrol terminal identification information and the patrol terminal account; When the sign-in request message satisfies the message sending condition, sending the sign-in message to the patrol terminal includes: Obtain the sign-in terminal account, sign-in terminal ID, request message receiving time and sign-in terminal location information; Determining whether the sign-in request message satisfies the message sending condition according to the sending time of the request message, the receiving time of the request message, the patrol terminal location information and the sign-in terminal location information; When the sign-in request message meets the message sending condition, the sign-in message is sent to the patrol terminal.

9. A method for managing near-field communications, characterized in that: Applicable to relay equipment, including: Receive multiple check-in point information sent by a blockchain node, the check-in point information includes a check-in network state and a check-in terminal location information, the check-in point information is generated according to a first transaction, the first transaction is sent from a patrol terminal to the blockchain node, the first transaction carries multiple check-in messages, and the check-in messages are sent from the check-in terminal to the patrol terminal; Determine the installation area according to the plurality of check-in network states and the corresponding check-in terminal location information; A second transaction is sent to the blockchain node, wherein the second transaction carries a relay registration message, and the relay registration message includes a relay device account, so that the blockchain node issues numerical resources of the target value to the relay device account according to the allocation relationship table, and issues numerical resources of a first value among the numerical resources of the target value to the check-in terminal located in the installation area, and issues numerical resources of a second value among the numerical resources of the first value to a patrol terminal that receives the check-in message sent by the check-in terminal in the installation area.

10. A near area communication device, characterized in that: Applied to blockchain nodes, including: A first receiving module is used to receive a first transaction sent by a patrol terminal and add the first transaction to a blockchain, wherein the first transaction carries a plurality of check-in messages, and the check-in messages are sent from the check-in terminal to the patrol terminal; The first receiving module is further used to obtain a plurality of check-in point information according to the first transaction, wherein the check-in point information includes a check-in terminal network status and a check-in terminal location information; A first sending module, configured to send the plurality of check-in point information to a relay device, so that the relay device determines a setting area according to the network status of the plurality of check-in terminals and the corresponding location information of the check-in terminals; The first receiving module is further configured to receive a second transaction sent by the relay device, wherein the second transaction carries a relay registration message, and the relay registration message includes a relay device account; A transaction module is used to add the second transaction to the blockchain, distribute the numerical resources of the target value to the relay device account according to the allocation relationship table, distribute the numerical resources of the first value among the numerical resources of the target value to the check-in terminal located in the installation area, and distribute the numerical resources of the second value among the numerical resources of the first value to the patrol terminal that receives the check-in message sent by the check-in terminal in the installation area.

11. A near area communication device, characterized in that: Applied to the sign-in terminal, including: A second receiving module is used to receive a check-in request message sent by a patrol terminal; The second sending module is used to send a check-in message to the patrol terminal when the check-in request message meets the message sending conditions, so that the patrol terminal sends the first transaction to the blockchain node when connected to the Internet, and enables the relay device to determine the installation area according to the multiple check-in point information obtained through the first transaction, wherein the first transaction carries multiple check-in messages, and the check-in point information includes the network status of the check-in terminal and the location information of the check-in terminal.

12. A near area communication device, characterized in that: Applicable to relay equipment, including: A third receiving module is used to receive multiple check-in point information sent by the blockchain node, the check-in point information includes the check-in network status and the check-in terminal location information, the check-in point information is generated according to the first transaction, the first transaction is sent by the patrol terminal to the blockchain node, the first transaction carries multiple check-in messages, and the check-in messages are sent by the check-in terminal to the patrol terminal; A determination module, used to determine the installation area according to the plurality of check-in network states and the corresponding check-in terminal location information; The third sending module is used to send a second transaction to the blockchain node, wherein the second transaction carries a relay registration message, and the relay registration message includes a relay device account, so that the blockchain node issues numerical resources of the target value to the relay device account according to the allocation relationship table, and issues numerical resources of a first value among the numerical resources of the target value to the check-in terminal located in the installation area, and issues numerical resources of a second value among the numerical resources of the first value to a patrol terminal that receives the check-in message sent by the check-in terminal in the installation area.

13. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the near area communication management method according to any one of claims 1 to 9 by executing the executable instructions.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the near area communication management method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Blockchain-based contract terminal and method using location information

    CN112997446A

  • Near-field communication method and device, equipment and medium

    CN114928830A