CN117035757A - Resource transfer method, device, computer equipment and storage medium - Google Patents

Resource transfer method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN117035757A
CN117035757A CN202310787951.7A CN202310787951A CN117035757A CN 117035757 A CN117035757 A CN 117035757A CN 202310787951 A CN202310787951 A CN 202310787951A CN 117035757 A CN117035757 A CN 117035757A
Authority
CN
China
Prior art keywords
resource transfer
resource
equipment
receiving
network communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310787951.7A
Other languages
Chinese (zh)
Inventor
黄丝
黄攀
郭美佳
张雅兰
惠海芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202310787951.7A priority Critical patent/CN117035757A/en
Publication of CN117035757A publication Critical patent/CN117035757A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/308Payment architectures, schemes or protocols characterised by the use of specific devices or networks using the Internet of Things
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Abstract

The present application relates to a resource transfer method, apparatus, computer device, storage medium and computer program product. The method comprises the following steps: responding to an ad hoc network communication connection request sent by the resource transfer-out equipment, and establishing an ad hoc network communication link between the resource transfer-out equipment and the resource transfer-out equipment; receiving a resource transfer request sent by a resource transfer-out device through an ad hoc network communication link; generating a resource transfer message based on the resource transfer request, and sending the resource transfer message to a resource transfer system positioned outside the ad hoc network communication link; receiving a resource transfer result returned by the resource transfer system and sending the resource transfer result to the resource transfer management equipment; and acquiring a resource transfer rollback instruction sent by the resource transfer management equipment, and performing resource transfer rollback aiming at the resource transfer request according to the resource transfer rollback instruction until the resource transfer between the resource transfer-out equipment and the resource receiving equipment is completed. The method belongs to the technical field of the Internet of things, and the efficiency of resource transfer can be improved by adopting the method.

Description

Resource transfer method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technology, and in particular, to a resource transfer method, apparatus, computer device, storage medium, and computer program product.
Background
With the development of online resource transfer technology, when a user transfers resources to a resource receiver, online resource transfer is often initiated to a terminal corresponding to the resource receiver on a user terminal through the online resource transfer technology.
However, in the conventional online resource transfer method, online resource transfer is usually initiated by a user terminal to a terminal corresponding to a resource receiver through a mobile network, and there is a problem of low resource transfer efficiency.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a resource transfer method, apparatus, computer device, computer-readable storage medium, and computer program product that can improve the efficiency of resource transfer.
The application provides a resource transfer method. The method comprises the following steps:
responding to an ad hoc network communication connection request sent by the resource transfer-out equipment, and establishing an ad hoc network communication link between the resource transfer-out equipment and the resource transfer-out equipment; wherein the ad hoc network communication is a communication mode independent of any fixed infrastructure;
receiving a resource transfer request sent by a resource transfer-out device through an ad hoc network communication link;
generating a resource transfer message based on the resource transfer request, and sending the resource transfer message to a resource transfer system positioned outside the ad hoc network communication link so that the resource transfer system executes resource transfer between the resource transfer-out equipment and the resource receiving equipment according to the resource transfer message;
Receiving a resource transfer result returned by the resource transfer system, and sending the resource transfer result to resource transfer management equipment so that the resource transfer management equipment generates a resource transfer record based on the resource transfer result and detects the resource transfer record;
and acquiring a resource transfer rollback instruction sent by the resource transfer management equipment when the detection result of the resource transfer record is abnormal, and performing resource transfer rollback aiming at a resource transfer request according to the resource transfer rollback instruction until the resource transfer between the resource transfer equipment and the resource receiving equipment is completed.
The application also provides a resource transfer device. The device comprises:
the communication link establishment module is used for responding to an ad hoc network communication connection request sent by the resource transfer-out equipment and establishing an ad hoc network communication link between the resource transfer-out equipment and the communication link establishment module; wherein the ad hoc network communication is a communication mode independent of any fixed infrastructure;
the transfer request receiving module is used for receiving a resource transfer request sent by the resource transfer-out equipment through the ad hoc network communication link;
the resource transfer processing module is used for generating a resource transfer message based on the resource transfer request, and sending the resource transfer message to a resource transfer system positioned outside the self-organizing network communication link so that the resource transfer system executes resource transfer between the resource transfer-out equipment and the resource receiving equipment according to the resource transfer message;
The resource transfer management equipment generates a resource transfer record based on the resource transfer result and detects the resource transfer record;
and the resource transfer rollback module is used for acquiring a resource transfer rollback instruction sent by the resource transfer management equipment when the detection result of the resource transfer record is abnormal, and carrying out resource transfer rollback aiming at the resource transfer request according to the resource transfer rollback instruction until the resource transfer between the resource transfer equipment and the resource receiving equipment is completed.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the above described resource transfer method when the processor executes the computer program.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the resource transfer method described above.
A computer program product comprising a computer program which, when executed by a processor, implements the steps of the resource transfer method described above.
The above-described resource transfer method, apparatus, computer device, storage medium, and computer program product establish an ad hoc network communication link with a resource forwarding device by responding to an ad hoc network communication connection request sent by the resource forwarding device. And receiving a resource transfer request sent by the resource transfer-out equipment through the ad hoc network communication link, generating a resource transfer message based on the resource transfer request, and sending the resource transfer message to a resource transfer system positioned outside the ad hoc network communication link. And receiving a resource transfer result returned by the resource transfer system, and sending the resource transfer result to the resource transfer management equipment. And acquiring a resource transfer rollback instruction sent by the resource transfer management equipment when the detection result of the resource transfer record is abnormal, and performing resource transfer rollback aiming at a resource transfer request according to the resource transfer rollback instruction until the resource transfer between the resource transfer equipment and the resource receiving equipment is completed. In this way, by establishing the ad hoc network communication link with the resource transfer device independent of any fixed infrastructure, and further responding to the resource transfer request sent by the resource transfer device through the ad hoc network communication link, the resource transfer between the resource transfer device and the resource receiving device is completed, and the stability and efficiency of the resource transfer can be effectively improved.
Drawings
FIG. 1 is a diagram of an application environment for a resource transfer method in one embodiment;
FIG. 2 is a flow diagram of a method of resource transfer in one embodiment;
FIG. 3 is a flow diagram of establishing an ad hoc communication link in one embodiment;
FIG. 4 is a flow chart of a method of transferring resources according to another embodiment;
FIG. 5 is a block diagram of a resource transfer device in one embodiment;
FIG. 6 is a block diagram of a resource transfer device in another embodiment;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The resource transfer method provided by the embodiment of the application can be applied to an application environment shown in figure 1. Wherein the resource receiving device 102 communicates with the resource forwarding device 104 via an ad hoc communication link. The resource receiving device 102 communicates with the resource transfer management device 106 and the resource transfer system 108 over a network. The resource receiving device 102 and the resource transferring device 104 are terminals, and the terminals can be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, and the internet of things devices can be smart televisions, smart vehicle devices and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The resource transfer management device 104 and the resource transfer system 108 may be implemented as separate servers or as a server cluster of multiple servers. The resource receiving device 102 and the resource transfer management device 104 may be directly or indirectly connected by wired or wireless communication, and the application is not limited herein.
The resource receiving device, the resource transferring device, the resource transfer management device and the resource transfer system are cooperatively used for executing the resource management method provided in the embodiment of the application. The resource receiving device responds to the self-networking communication connection request sent by the resource transferring device, and establishes a self-networking communication link between the resource receiving device and the resource transferring device, wherein the self-networking communication is a communication mode independent of any fixed infrastructure. The resource transfer-out device sends a resource transfer request to the resource transfer-out device over the ad hoc network communication link. The resource receiving device receives a resource transfer request sent by the resource transferring device through the ad hoc network communication link, generates a resource transfer message based on the resource transfer request, and sends the resource transfer message to a resource transfer system located outside the ad hoc network communication link. And the resource transfer system executes resource transfer between the resource transfer-out equipment and the resource receiving equipment according to the resource transfer message, generates a resource transfer result and sends the resource transfer result to the resource receiving equipment. The resource receiving device receives a resource transfer result returned by the resource transfer system and sends the resource transfer result to the resource transfer management device. The resource transfer management equipment generates a resource transfer record based on the resource transfer result, detects the resource transfer record to obtain a detection result, and sends a resource transfer rollback instruction to the resource receiving equipment when the detection result is abnormal. And after the resource receiving equipment receives the resource transfer rollback instruction, performing resource transfer rollback aiming at the resource transfer request according to the resource transfer rollback instruction until the resource transfer between the resource transfer-out equipment and the resource receiving equipment is completed.
In one embodiment, as shown in fig. 2, a resource transfer method is provided, and the method is applied to a resource receiving device for illustration, and the resource transfer method includes the following steps:
step S202, an ad hoc network communication link between the resource transfer-out equipment and the resource transfer-out equipment is established in response to an ad hoc network communication connection request sent by the resource transfer-out equipment; wherein ad hoc communication is a communication mode that does not rely on any fixed infrastructure.
The resource receiving device refers to a device for receiving resources, namely a device logged in a resource receiving account, and is used for receiving resources transferred by other accounts. The resource transferring device refers to a device for transferring resources, namely a device logged in a resource transferring account, and is used for transferring the resources in the resource transferring account to other accounts. The resource receiving account and the resource transferring account are both accounts storing resources, the resources stored in the accounts can be virtual currency, virtual items, stored value balances, and the like, and when the accounts are game accounts, for example, the resources stored in the accounts can be virtual currency or virtual items.
The ad hoc network communication refers to a communication mode which does not depend on any fixed infrastructure communication facility, for example, the fixed infrastructure communication facility can be a base station, a router and the like, autonomous discovery and autonomous interconnection among a plurality of devices can be realized through the ad hoc network communication, a local network of a plurality of nearby inter-device components is provided for data transmission, data is directly transmitted and received, and internet transfer is not needed. The ad hoc network communication is data transmission between devices through radio waves, and the transmission distance between the devices is short and the transmission power consumption is small, for example, the ad hoc network communication may be near field communication, and the near field communication may be bluetooth-based wireless communication, zigbee (Zigbee) -based wireless communication, or the like.
An ad hoc communication connection request refers to a request sent by a resource transfer-out device to a resource receiving device for establishing an ad hoc communication link with the resource receiving device.
In order to improve the efficiency of resource transfer, an ad hoc network communication link is established between a resource transfer device and a resource receiving device by sending an ad hoc network communication connection request to the resource receiving device, and the resource transfer between the resource transfer device and the resource receiving device is performed through the ad hoc network communication link, which belongs to the technical field of the internet of things. After receiving the ad hoc network communication connection request sent by the resource transfer-out device, the resource receiving device establishes an ad hoc network communication link with the resource transfer-out device based on the ad hoc network communication address corresponding to the resource transfer-out device carried in the ad hoc network communication connection request.
In one embodiment, the resource transferring device sends an ad hoc network communication connection request to the resource receiving device when detecting that the current mobile network is unstable or cannot be connected with the mobile network, establishes an ad hoc network communication link with the resource receiving device, and transfers resources with the resource receiving device through the ad hoc network communication link.
In step S204, a resource transfer request sent by the resource transfer-out device through the ad hoc network communication link is received.
The self-networking communication link is a communication link established between devices through self-networking communication technology, and the resource transferring device and the resource receiving device can perform data transmission through the self-networking communication link. The resource transfer request refers to a request sent between devices and used for transferring resources between accounts, and the resource transfer request can carry information such as a resource transfer value, an account identifier of a resource transfer account, an account identifier of a resource receiving account and the like.
Illustratively, after establishing the ad hoc network communication link with the resource transfer-out device, the resource receiving device initiates a resource transfer to the resource transfer-out device over the ad hoc network communication link and sends an account identification of the resource receiving account to the resource transfer-out device over the ad hoc network communication link. The resource transferring device sends a resource transferring request to the resource receiving device through the ad hoc network communication link, wherein the resource transferring request carries the resource numerical value transferred by the resource transferring device to the resource receiving device, namely, the information such as the resource transferring numerical value, the account identifier of the resource transferring account, the account identifier of the resource receiving account and the like. The resource receiving device receives a resource transfer request sent by the resource transferring device through the ad hoc network communication link.
Step S206, generating a resource transfer message based on the resource transfer request, and sending the resource transfer message to a resource transfer system outside the self-organizing network communication link, so that the resource transfer system executes the resource transfer between the resource transfer-out device and the resource receiving device according to the resource transfer message.
The resource transfer message is a message generated based on a resource transfer request and used for being sent to a resource transfer system, and the resource transfer message is used for indicating the resource transfer system to finish the resource transfer between corresponding accounts. The resource transfer system outside the ad hoc network communication link refers to a system which is located in the external internet and used for managing account resources corresponding to each account respectively and realizing resource transfer among the accounts.
The resource receiving device generates a corresponding resource transfer message based on information such as a resource transfer value carried in the resource transfer request, an account identifier of a resource transfer account, an account identifier of a resource receiving account, and the like, and a resource transfer message format corresponding to the resource transfer system. And sending the resource transfer message to a resource transfer system positioned outside the Ad hoc network communication link, so that the resource transfer system executes resource transfer between the resource transfer-out equipment and the resource receiving equipment based on the resource transfer information carried in the resource transfer message. Specifically, based on the account identifier corresponding to the resource transfer-out account and the account identifier of the resource receiving account, determining the resource transfer-out account and the resource receiving account, deducting the resource matched with the resource transfer value from the resource transfer-out account, adding the resource matched with the resource transfer value into the resource receiving account, generating a corresponding resource transfer result, recording the resource transfer result and sending the resource transfer result to the resource receiving equipment.
Step S208, receiving a resource transfer result returned by the resource transfer system, and sending the resource transfer result to the resource transfer management device, so that the resource transfer management device generates a resource transfer record based on the resource transfer result and detects the resource transfer record.
The resource transfer result refers to a transfer result obtained after the resource transfer system performs resource transfer between the resource transfer-out account and the resource receiving account based on the resource transfer instruction, the transfer result carries resource transfer information corresponding to the resource transfer message and a resource transfer state, the resource transfer state can be successful or abnormal in resource transfer, and if the resource transfer is abnormal, the resource transfer result can also carry corresponding abnormal information.
The resource transfer management device is used for managing a plurality of resource receiving devices, monitoring resource receiving records of each resource receiving device, initiating resource transfer rollback when abnormal resource receiving occurs, and simultaneously monitoring whether the self-networking communication links between each resource receiving device and the corresponding resource transfer device are normal or not, so that the safety and the efficiency of resource transfer are improved.
The resource transfer record refers to a record generated based on a resource transfer result corresponding to each resource transfer, and is used as a resource transfer certificate to improve the security of the resource transfer. For example, the resource transfer record may record information such as a resource transfer request time, a resource transfer completion time, resource reception account information, resource transfer-out account information, a resource transfer value, a resource transfer serial number, and resource transfer abnormality information.
Illustratively, the resource receiving device receives a resource transfer result sent by the resource transfer system, and sends the resource transfer result to the resource transfer management device. The resource transfer management equipment generates a corresponding resource transfer record based on the resource transfer result and a resource transfer request corresponding to the resource transfer result, and stores the resource transfer record into a resource receiving log corresponding to the resource receiving equipment. The resource transfer management device further detects the resource transfer record, specifically, detects whether the resource transfer record has abnormal information of resource transfer, if the abnormal information of resource transfer does not exist, the detection result is determined to be normal, and if the abnormal information of resource transfer exists, the detection result is determined to be abnormal. The abnormal detection result may be abnormal resource transfer caused by network abnormality, disconnection of an ad hoc network communication link, loss of a resource transfer message, safety risk of a resource transfer environment and other factors. And when the resource transfer management equipment detects the abnormal resource transfer, the resource transfer management equipment sends a resource transfer rollback instruction to the resource receiving equipment.
Step S210, a resource transfer rollback instruction sent by the resource transfer management device when the detection result of the resource transfer record is abnormal is obtained, and the resource transfer rollback for the resource transfer request is carried out according to the resource transfer rollback instruction until the resource transfer between the resource transfer-out device and the resource receiving device is completed.
The resource transfer rollback instruction is an instruction for indicating the resource receiving device to perform resource transfer rollback aiming at the corresponding resource transfer request under the condition that the abnormality occurs in the resource transfer.
Resource transfer rollback for a resource transfer request refers to the withdrawal of all resource transfer operations performed for the resource transfer request, with the resource transfer-out device resending the resource transfer request to the resource receiving device.
The resource receiving device obtains a resource transfer rollback instruction sent by the resource transfer management device when the detection result of the resource transfer record is abnormal, and requests to withdraw all resource transfer operations performed for the resource transfer request from the resource transfer system. After receiving the withdrawal success information fed back by the resource transfer system, the resource receiving equipment initiates resource transfer to the resource transfer equipment through the ad hoc network communication link again until the resource transfer between the resource transfer account and the resource receiving account is completed.
In the resource transfer method, the self-networking communication link between the resource transfer equipment and the self-networking communication link is established by responding to the self-networking communication connection request sent by the resource transfer equipment. And receiving a resource transfer request sent by the resource transfer-out equipment through the ad hoc network communication link, generating a resource transfer message based on the resource transfer request, and sending the resource transfer message to a resource transfer system positioned outside the ad hoc network communication link. And receiving a resource transfer result returned by the resource transfer system, and sending the resource transfer result to the resource transfer management equipment. And acquiring a resource transfer rollback instruction sent by the resource transfer management equipment when the detection result of the resource transfer record is abnormal, and performing resource transfer rollback aiming at a resource transfer request according to the resource transfer rollback instruction until the resource transfer between the resource transfer equipment and the resource receiving equipment is completed. In this way, by establishing the ad hoc network communication link with the resource transfer device independent of any fixed infrastructure, and further responding to the resource transfer request sent by the resource transfer device through the ad hoc network communication link, the resource transfer between the resource transfer device and the resource receiving device is completed, and the stability and efficiency of the resource transfer can be effectively improved.
In one embodiment, as shown in fig. 3, in response to an ad hoc communication connection request sent by a resource egress device, establishing an ad hoc communication link with the resource egress device includes:
step S302, a device identification code corresponding to the resource receiving device is displayed; the device identification code is generated based on the ad hoc network communication address and the device identification corresponding to the resource receiving device.
Step S304, an ad hoc network communication link between the resource transfer-out equipment and the resource transfer-out equipment is established in response to an ad hoc network communication connection request generated by the resource transfer-out equipment through the scanning equipment identification code; the ad hoc network communication connection request and the resource transfer request are sequentially generated by the resource transfer-out device through the scanning device identification code.
The device identification code refers to an identification code generated based on an ad hoc network communication address and a device identifier corresponding to the device, for example, the device identification code may be a bar code, a two-dimensional code, or the like, and after the resource transferring device scans the device identification code corresponding to the resource receiving device, the ad hoc network communication address and the device identifier corresponding to the resource receiving device may be resolved according to the device identification code, so as to automatically send an ad hoc network communication connection request to the ad hoc network communication address. The ad hoc network communication address refers to a unique communication address respectively allocated to each device using ad hoc network communication, and an ad hoc network communication link can be established between the devices according to the ad hoc network communication addresses respectively corresponding to the devices. The device identifier refers to a unique identifier corresponding to each device, and is used for distinguishing different devices.
Illustratively, the resource receiving device generates a corresponding device identification code based on the ad hoc network communication address and the device identifier corresponding to the resource receiving device and displays the corresponding device identification code on the display page. The resource transferring device scans the device identification code on the display page of the resource receiving device, analyzes the device identification code to obtain the self-networking communication address and the device identification corresponding to the resource receiving device, and then automatically sends the self-networking communication connection request to the self-networking communication address corresponding to the resource receiving device obtained through analysis. After receiving the ad hoc network communication connection request, the resource receiving device establishes an ad hoc network communication link with the resource forwarding device based on the ad hoc network communication address corresponding to the resource forwarding device carried in the ad hoc network communication connection request. After the self-networking communication link with the resource transferring device is established, the resource receiving device initiates resource transfer to the resource transferring device through the self-networking communication link, and sends the account identification of the resource receiving account to the resource transferring device through the self-networking communication link. The resource transfer-out device responds to the resource transfer initiated by the resource receiving device, displays a resource transfer-out page, wherein the resource transfer-out page contains account identifiers of resource receiving accounts, responds to the resource transfer-out operation aiming at the resource transfer-out page, generates a corresponding resource transfer request, and sends the resource transfer request to the resource receiving device through an ad hoc network communication link.
After the device identification code corresponding to the resource receiving device is scanned, the resource transferring device firstly generates an ad hoc network communication connection request and sends the request to the resource receiving device, after an ad hoc network communication link between the resource transferring device and the resource receiving device is established, the resource transferring device responds to the resource transfer initiated by the resource receiving device, displays a resource transferring page, responds to the resource transferring operation aiming at the resource transferring page, generates a corresponding resource transfer request, and sends the resource transfer request to the resource receiving device.
In the above embodiment, the resource receiving device displays the device identifier, and the resource transferring device can analyze the ad hoc network communication address and the device identifier corresponding to the resource receiving device according to the device identifier by scanning the device identifier, so as to automatically send an ad hoc network communication connection request to the ad hoc network communication address, and the resource receiving device responds to the ad hoc network communication connection request to establish an ad hoc network communication link with the resource transferring device, so that the accuracy and efficiency of the establishment of the ad hoc network communication link can be ensured. Further, after the ad hoc network communication link with the resource transferring device is established, the resource transferring device responds to the resource transfer initiated by the resource receiving device, generates a resource transfer request and sends the resource transfer request to the resource receiving device. Therefore, the self-networking communication connection request and the resource transfer request are sequentially generated by the resource transfer equipment through the equipment identification codes, the resource transfer equipment can establish a self-networking communication link with the resource receiving equipment only by scanning the equipment identification code corresponding to the resource receiving equipment once, and the resource transfer with the resource receiving equipment is carried out through the self-networking communication link, so that the flow of the resource transfer can be simplified, and the efficiency of the resource transfer can be effectively improved.
In one embodiment, before establishing the ad hoc network communication link with the resource egress device in response to the ad hoc network communication connection request sent by the resource egress device, the method further comprises:
transmitting an ad hoc network communication connection broadcast; the self-networking communication connection broadcast comprises self-networking communication addresses corresponding to the resource receiving equipment and equipment identifiers corresponding to the resource receiving equipment; the self-networking communication connection request is generated by the resource transfer-out equipment through the self-networking communication address corresponding to the resource receiving equipment by determining the resource receiving equipment from all the receiving equipment to be connected according to the equipment identification corresponding to the resource receiving equipment.
The self-networking communication connection broadcast refers to a broadcast sent by the resource receiving device to other devices, and is used for broadcasting self-networking communication addresses and device identifiers to the other devices, so that the other devices can identify the resource receiving device based on the self-networking communication addresses and the device identifiers carried in the broadcast, and establish self-networking communication links with the resource receiving device. The receiving device to be connected refers to the device corresponding to each ad hoc network communication connection broadcast received by the resource transferring device.
Illustratively, the resource receiving device generates an ad hoc network communication connection broadcast based on its corresponding ad hoc network communication address and device identification, and continually transmits the ad hoc network communication connection broadcast to other devices in the vicinity. After the resource receiving device receives the self-networking communication connection broadcast respectively sent by the plurality of receiving devices to be connected, the self-networking communication connection broadcast sent by the resource receiving device is determined in each self-networking communication connection broadcast according to the device identification corresponding to the resource receiving device, and then the self-networking communication address corresponding to the resource receiving device is determined from the self-networking communication connection broadcast sent by the resource receiving device, and the self-networking communication connection request is sent to the self-networking communication address corresponding to the resource receiving device. An ad hoc communication link is established by the resource receiving device with the resource forwarding device in response to the ad hoc communication connection request.
In the above embodiment, the resource receiving device continuously sends the ad hoc network communication connection broadcast carrying the ad hoc network communication address and the device identifier corresponding to the resource receiving device to the outside, so that other devices can identify the resource receiving device and establish an ad hoc network communication link with the resource receiving device based on the ad hoc network communication address and the device identifier carried in the broadcast, and the efficiency of establishing the ad hoc network communication link with the resource receiving device by the resource transferring device can be improved.
In one embodiment, generating a resource transfer message based on a resource transfer request, transmitting the resource transfer message to a resource transfer system located outside of an ad hoc network communication link, includes:
acquiring receiving states corresponding to the candidate receiving units respectively; when a candidate receiving unit with the receiving state being the idle state exists, determining a target receiving unit from the candidate receiving units with the receiving state being the idle state; when the receiving states corresponding to the candidate receiving units are busy states, determining a target receiving unit in the candidate receiving units based on the waiting queue lengths corresponding to the candidate receiving units; and transmitting the resource transfer request to a target receiving unit, generating a resource transfer message based on the resource transfer request by the target receiving unit, and transmitting the resource transfer message to a resource transfer system positioned outside the Ad hoc network communication link.
The candidate receiving units are receiving units which are included in the resource receiving equipment and are used for responding to the resource transfer requests, and the resource receiving equipment can simultaneously establish an ad hoc network communication link with a plurality of resource transfer-out equipment respectively, so that the resource receiving equipment comprises a plurality of candidate receiving units, and the resource transfer requests from different resource transfer-out equipment are processed in parallel by the candidate receiving units, so that the resource transfer efficiency can be improved.
The receiving state refers to a current processing state of the candidate receiving unit, if the candidate receiving unit is processing the resource transfer request, the receiving state corresponding to the candidate receiving unit is a busy state, and if the candidate receiving unit does not currently receive the resource transfer request, the receiving state corresponding to the candidate receiving unit is an idle state.
The target receiving unit refers to a candidate receiving unit for processing the resource transfer request, which is determined among the respective candidate receiving units.
The waiting queue length refers to the number of resource transfer requests to be processed, which each candidate receiving unit corresponds to when each candidate receiving unit is in a busy state.
Illustratively, the resource receiving device obtains the respective corresponding receiving states of the respective candidate receiving units. When there are candidate receiving units whose reception states are idle states, a target receiving unit is determined from among the candidate receiving units whose respective reception states are idle states. Specifically, the target receiving unit may be determined from the candidate receiving units in the idle state in a random manner, or the candidate receiving unit with the shortest average processing duration may be determined as the target receiving unit according to the average processing duration corresponding to the candidate receiving units in the idle state. And when the receiving states corresponding to the candidate receiving units are busy states, acquiring the waiting queue lengths corresponding to the candidate receiving units, and determining the target receiving unit in the candidate receiving units. Specifically, the candidate receiving unit with the shortest waiting queue length may be determined as the target receiving unit, or the estimated waiting time length corresponding to each candidate receiving unit may be determined based on the average processing time length and the waiting queue length corresponding to the same candidate receiving unit, and the candidate receiving unit with the shortest estimated waiting time length may be determined as the target receiving unit.
The resource receiving device transmits the resource transfer request to the target receiving unit, the target receiving unit generates a corresponding resource transfer message based on the resource transfer request and a resource transfer message format corresponding to the resource transfer system, and the target receiving unit sends the resource transfer message to the resource transfer system outside the self-organizing network communication link. The resource transfer system executes the resource transfer between the resource transfer-out device and the resource receiving device according to the resource transfer message, sends the resource transfer result to the target receiving unit, and sends the resource transfer result to the resource transfer management device by the target receiving unit.
In the above embodiment, since the resource receiving device may simultaneously establish the ad hoc communication links with the plurality of resource transfer devices respectively and simultaneously receive the resource transfer requests from the plurality of resource transfer devices, the resource receiving device includes a plurality of candidate receiving units for responding to the resource transfer requests, and each candidate receiving unit processes the resource transfer requests from different resource transfer devices in parallel, so that the resource transfer efficiency can be improved.
In one embodiment, the resource transfer method further comprises:
obtaining a connection request statistic value from resource transfer management equipment; the connection request statistic value is obtained by the resource transfer management device counting the connection request numbers respectively corresponding to the plurality of candidate receiving devices in the monitoring period; the candidate receiving equipment is connected with the resource transfer management equipment and is managed by the resource transfer management equipment; and adjusting the number of the candidate receiving units according to the connection request statistic value.
The connection request statistic value refers to a statistic value obtained by the resource transfer management device in a monitoring period by counting the ad hoc network communication connection requests respectively received by each candidate receiving device, and is used for representing the frequency of receiving resource transfer by each candidate receiving device in the monitoring period.
The candidate receiving device is a resource receiving device connected with and managed by the resource transfer management device, and the candidate receiving device and the resource transfer management device can be connected wirelessly through an ad hoc network communication link, through a fixed infrastructure or through a wired mode.
The monitoring period is a period corresponding to the current time and used for monitoring connection requests respectively corresponding to the candidate receiving devices.
The number of connection requests refers to the number of ad hoc network communication connection requests received by the candidate reception apparatus during the monitoring period.
The resource transfer management device counts the connection request numbers corresponding to the candidate receiving devices respectively in the monitoring period corresponding to the current time, fuses the connection request numbers corresponding to the candidate receiving devices respectively, and takes the sum of the connection request numbers as the connection request statistic value corresponding to the current monitoring period. The resource receiving device acquires a connection request statistical value corresponding to the current monitoring period from the resource transfer management device, compares the connection request statistical value corresponding to the current monitoring period with the connection request statistical value corresponding to the previous monitoring period, and adjusts the number of candidate receiving units included in the resource receiving device. Specifically, a ratio between a connection request statistic value corresponding to the current monitoring period and a connection request statistic value corresponding to the previous monitoring period is calculated, and the number of candidate receiving units included in the resource receiving device is correspondingly adjusted according to the ratio.
In the above embodiment, when each monitoring period ends, the resource receiving device adaptively adjusts the number of candidate receiving units included in the resource receiving device according to the connection request statistics value corresponding to the current monitoring period, that is, increases the number of candidate receiving units when the connection request statistics value increases, decreases the number of candidate receiving units when the connection request statistics value decreases, so that the efficiency of resource transfer can be effectively improved, and the computer resources of the resource receiving device are saved.
In one embodiment, the resource transfer method further comprises:
transmitting a link detection message to the resource transfer-out equipment; receiving a response message which is returned by the resource transferring-out equipment and is aimed at the link detection message; transmitting the link detection message and the response message to the resource transfer management equipment so that the resource transfer management equipment determines the link state of the ad hoc network communication link between the resource receiving equipment and the resource transferring equipment based on the link detection message and the response message; acquiring a link reestablishment instruction sent by resource transfer management equipment when the link state is abnormal; releasing an ad hoc network communication link between the resource transfer-out equipment and the link reestablishment instruction; and sending an ad hoc network communication reconnection request to the resource transfer-out device so that the resource transfer-out device reestablishes an ad hoc network communication link with the resource receiving device in response to the ad hoc network communication reconnection request.
The link detection message is a message for detecting a link state of an ad hoc network communication link. The response message refers to a response message sent by the resource transferring device to the resource receiving device for the link detection message through the ad hoc network communication link between the resource transferring device and the resource receiving device.
The link state refers to the communication state of the ad hoc communication link.
The link reestablishment instruction refers to an instruction for instructing the resource receiving device to reestablish the ad hoc network communication link with the corresponding resource transferring-out device.
The ad hoc network communication reconnection request refers to a request sent by the resource receiving device to the resource forwarding device to reestablish the ad hoc network communication link.
Illustratively, the resource receiving device periodically sends a link detection message to the resource forwarding device via the ad hoc network communication link, and the resource forwarding device returns a response message to the link detection message to the resource receiving device via the ad hoc network communication link. After receiving the response message returned by the resource transferring device, the resource receiving device sends the link detection message and the response message to the resource transfer management device.
The resource transfer management device detects the link detection message and the response message, determines a link state of the ad hoc network communication link between the resource receiving device and the resource transferring device, and specifically may determine the link state of the ad hoc network communication link according to a transmission time of the link detection message to the resource transferring device and a reception time of the response message received by the resource receiving device, for example, when a time interval between the transmission time of the resource transferring device and the reception time of the response message received by the resource receiving device is greater than a preset time interval, determine that the link state of the ad hoc network communication link is abnormal. And when the resource transfer management equipment determines that the link state is abnormal, the resource transfer management equipment sends a link reestablishing instruction to the resource receiving equipment.
And after receiving a link reestablishing instruction sent by the resource transfer management equipment when the link state is abnormal, the resource receiving equipment immediately releases an ad hoc network communication link between the resource transfer management equipment and the resource transfer equipment and sends an ad hoc network communication reconnection request to the resource transfer equipment. After receiving the request for reconnecting the self-networking communication sent by the resource receiving device, the resource transferring device responds to the request for reconnecting the self-networking communication and automatically reestablishes the self-networking communication link with the resource receiving device.
In the above embodiment, the resource receiving device sends the link detection message to the resource transferring device at regular time through the ad hoc network communication link, and then sends the response message and the link detection message returned by the resource transferring device to the resource transfer management device. The resource transfer management equipment analyzes the link state of the self-networking communication link, and when the link state is abnormal, the resource receiving equipment responds to the link reestablishing instruction sent by the resource transfer management equipment to reestablish the self-networking communication link between the resource transfer management equipment and the resource receiving equipment, so that the stability of the self-networking communication link can be ensured, and the efficiency of resource transfer is improved. In addition, after the resource transfer-out device receives the self-networking communication reconnection request sent by the resource receiving device, the self-networking communication link between the resource transfer-out device and the resource receiving device is automatically reestablished, and the resource receiving device is not required to confirm the self-networking communication reconnection request, so that the efficiency of reestablishing the self-networking communication link can be improved.
In a specific embodiment, the resource transfer method of the present application can be applied to a merchant's collection device, where the user device has difficulty in making an online payment to the merchant's collection device via a mobile network in the case of poor movement signals at the collection location, for example, in the case of underground malls, crowded locations, etc. By using the resource transfer method in the application, on-line transaction between the user equipment and merchant equipment can be smoothly carried out under the scene of no network or large traffic, the on-line payment efficiency is improved, and the payment waiting time is reduced. As shown in fig. 4, when the user selects payment, the payment is initiated by the payment collecting device, if the bidirectional link communication between the payment collecting device and the user device is normal, and the base station module (i.e. the resource transfer management module) monitors that the payment collecting device successfully collects the payment, the link transaction is normally ended, if the bidirectional link communication is abnormal, the base station module monitors that the link transaction is abnormal, and then the rollback operation is performed on the transaction, and the user re-initiates the payment until the payment collection is normally ended. The resource transfer method comprises the following steps:
1. establishing a close range communication link
When the user equipment needs to pay online to the collection equipment, the user equipment scans the equipment identification code displayed on the collection equipment, and after resolving the ad hoc network communication address corresponding to the collection equipment according to the equipment identification code, the user equipment automatically sends a near field communication connection request (namely, an ad hoc network communication connection request) to the ad hoc network communication address. The collecting device establishes a close range communication link (i.e., an ad hoc communication link) with the user device in response to the close range communication connection request transmitted by the user device, and encrypts the close range communication link using an encryption algorithm to prevent the user information, the payment amount, and the payment link information from being tampered with. After the encrypted close-range communication link is established, the collection device initiates collection to the user device through the close-range communication link, and the user device sends a payment request to the collection device through the close-range communication link, wherein the payment request carries information such as request transaction time, account identifications (namely IDs of the transaction parties) of the transaction parties, transaction amount and the like.
2. Responding to payment requests
After receiving the payment request, the collection device determines a target sub-module in each collection sub-module, transfers the payment request to the target sub-module, responds to the payment request by the target sub-module, namely generates a corresponding payment message based on the payment request, sends the payment message to an external transaction system for managing each transaction account, and the external transaction system completes the transaction between the collection device and the user device, namely the transaction between the account of the collection party and the account of the user based on the payment message. The external transaction system returns the transaction result to the collection device, and the collection device sends the transaction result and the payment request to the base station module.
3. Payment anomaly rollback
The base station module generates a corresponding transaction record based on the transaction result and the payment request, and stores the transaction record into a collection log corresponding to the collection device. If the base station module detects that the transaction is abnormal, rolling back the transaction, and restarting payment by the user equipment until the collection of the collection equipment is normally finished.
In the above embodiment, a payment method based on near field communication, that is, a payment method of D2D (Device to Device) is provided, so that interference of other user devices is reduced, safety during payment is greatly enhanced, safety problems caused by other manual operations such as cutting payment information are avoided, the problem of unsafe payment when a mall WIFI (Wireless Fidelity, wireless local area network) is avoided, and meanwhile, waiting time of a user is reduced, so that payment becomes quicker and more convenient, and accidents are avoided. In addition, by arranging the base station module, whether the close-range communication link between the collection equipment and the user equipment is normal or not is monitored through the base station module, and the communication link between the collection equipment and the user equipment is ensured to be normal, so that the payment efficiency under the condition of poor mobile signals in underground markets, crowded places and the like is improved, the checkout time is accelerated, and the queuing time of the user is reduced.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a resource transfer device for realizing the above-mentioned related resource transfer method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation of one or more embodiments of the resource transfer device provided below may be referred to the limitation of the resource transfer method hereinabove, and will not be repeated here.
In one embodiment, as shown in fig. 5, there is provided a resource transfer device including: a communication link establishment module 502, a transfer request receiving module 504, a resource transfer processing module 506, a transfer result sending module 508, and a resource transfer rollback module 510, wherein:
a communication link establishing module 502, configured to establish an ad hoc network communication link with a resource outbound device in response to an ad hoc network communication connection request sent by the resource outbound device; wherein ad hoc communication is a communication mode that does not rely on any fixed infrastructure.
A transfer request receiving module 504, configured to receive a resource transfer request sent by a resource transfer-out device through an ad hoc network communication link.
The resource transfer processing module 506 is configured to generate a resource transfer message based on the resource transfer request, and send the resource transfer message to a resource transfer system located outside the ad hoc network communication link, so that the resource transfer system performs resource transfer between the resource transfer-out device and the resource receiving device according to the resource transfer message.
And the transfer result sending module 508 is configured to receive a resource transfer result returned by the resource transfer system, and send the resource transfer result to the resource transfer management device, so that the resource transfer management device generates a resource transfer record based on the resource transfer result and detects the resource transfer record.
The resource transfer rollback module 510 is configured to obtain a resource transfer rollback instruction sent by the resource transfer management device when the detection result of the resource transfer record is abnormal, and perform resource transfer rollback for the resource transfer request according to the resource transfer rollback instruction until the resource transfer between the resource transfer-out device and the resource receiving device is completed.
In one embodiment, the communication link establishment module 502 is further configured to:
displaying the equipment identification code corresponding to the resource receiving equipment; the equipment identification code is generated based on the self-networking communication address and the equipment identification corresponding to the resource receiving equipment; responding to an ad hoc network communication connection request generated by the resource transfer-out equipment through the scanning equipment identification code, and establishing an ad hoc network communication link between the resource transfer-out equipment and the resource transfer-out equipment; the ad hoc network communication connection request and the resource transfer request are sequentially generated by the resource transfer-out device through the scanning device identification code.
In one embodiment, the resource transfer processing module 506 is further configured to:
acquiring receiving states corresponding to the candidate receiving units respectively; when a candidate receiving unit with the receiving state being the idle state exists, determining a target receiving unit from the candidate receiving units with the receiving state being the idle state; when the receiving states corresponding to the candidate receiving units are busy states, determining a target receiving unit in the candidate receiving units based on the waiting queue lengths corresponding to the candidate receiving units; and transmitting the resource transfer request to a target receiving unit, generating a resource transfer message based on the resource transfer request by the target receiving unit, and transmitting the resource transfer message to a resource transfer system positioned outside the Ad hoc network communication link.
In one embodiment, the resource transfer processing module 506 is further configured to:
obtaining a connection request statistic value from resource transfer management equipment; the connection request statistic value is obtained by the resource transfer management device counting the connection request numbers respectively corresponding to the plurality of candidate receiving devices in the monitoring period; the candidate receiving equipment is connected with the resource transfer management equipment and is managed by the resource transfer management equipment; and adjusting the number of the candidate receiving units according to the connection request statistic value.
In one embodiment, as shown in fig. 6, the resource transferring apparatus further includes:
a communication connection broadcast module 602, configured to send an ad hoc network communication connection broadcast; the self-networking communication connection broadcast comprises self-networking communication addresses corresponding to the resource receiving equipment and equipment identifiers corresponding to the resource receiving equipment; the self-networking communication connection request is generated by the resource transfer-out equipment through the self-networking communication address corresponding to the resource receiving equipment by determining the resource receiving equipment from all the receiving equipment to be connected according to the equipment identification corresponding to the resource receiving equipment.
A link monitoring module 604, configured to send a link detection message to a resource forwarding device; receiving a response message which is returned by the resource transferring-out equipment and is aimed at the link detection message; transmitting the link detection message and the response message to the resource transfer management equipment so that the resource transfer management equipment determines the link state of the ad hoc network communication link between the resource receiving equipment and the resource transferring equipment based on the link detection message and the response message; acquiring a link reestablishment instruction sent by resource transfer management equipment when the link state is abnormal; releasing an ad hoc network communication link between the resource transfer-out equipment and the link reestablishment instruction; and sending an ad hoc network communication reconnection request to the resource transfer-out device so that the resource transfer-out device reestablishes an ad hoc network communication link with the resource receiving device in response to the ad hoc network communication reconnection request.
According to the resource transfer device, the self-networking communication link which does not depend on any fixed infrastructure is established between the resource transfer device and the resource transfer equipment, so that the resource transfer between the resource transfer equipment and the resource receiving equipment is completed in response to the resource transfer request sent by the resource transfer equipment through the self-networking communication link, and the stability and the efficiency of the resource transfer can be effectively improved.
The various modules in the resource transfer device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a resource transfer method. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, implements the steps of the method embodiments described above.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-described method embodiments.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A method of resource transfer, for use with a resource receiving device, the method comprising:
responding to an ad hoc network communication connection request sent by a resource transfer-out device, and establishing an ad hoc network communication link between the resource transfer-out device and the resource transfer-out device; wherein the ad hoc network communication is a communication mode independent of any fixed infrastructure;
receiving a resource transfer request sent by the resource transfer-out equipment through the ad hoc network communication link;
Generating a resource transfer message based on the resource transfer request, and sending the resource transfer message to a resource transfer system positioned outside the ad hoc network communication link, so that the resource transfer system executes resource transfer between the resource transfer-out equipment and the resource receiving equipment according to the resource transfer message;
receiving a resource transfer result returned by the resource transfer system, and sending the resource transfer result to resource transfer management equipment so that the resource transfer management equipment generates a resource transfer record based on the resource transfer result and detects the resource transfer record;
and acquiring a resource transfer rollback instruction sent by the resource transfer management equipment when the detection result of the resource transfer record is abnormal, and carrying out resource transfer rollback aiming at the resource transfer request according to the resource transfer rollback instruction until the resource transfer between the resource transfer-out equipment and the resource receiving equipment is completed.
2. The method of claim 1, wherein the establishing an ad hoc communication link with the resource egress device in response to the ad hoc communication connection request sent by the resource egress device comprises:
Displaying the equipment identification code corresponding to the resource receiving equipment; the equipment identification code is generated based on the self-networking communication address and the equipment identifier corresponding to the resource receiving equipment;
responding to an ad hoc network communication connection request generated by the resource transfer-out equipment through scanning the equipment identification code, and establishing an ad hoc network communication link with the resource transfer-out equipment; the self-networking communication connection request and the resource transfer request are sequentially generated by the resource transfer-out equipment through scanning the equipment identification code.
3. The method of claim 1, wherein the method further comprises, prior to establishing an ad hoc communication link with the resource egress device in response to an ad hoc communication connection request sent by the resource egress device:
transmitting an ad hoc network communication connection broadcast; the self-networking communication connection broadcast comprises self-networking communication addresses corresponding to the resource receiving equipment and equipment identifiers corresponding to the resource receiving equipment;
and the self-networking communication connection request is generated by the resource transfer-out equipment through the self-networking communication address corresponding to the resource receiving equipment, wherein the resource receiving equipment is determined from all the receiving equipment to be connected according to the equipment identifier corresponding to the resource receiving equipment.
4. The method of claim 1, wherein generating a resource transfer message based on the resource transfer request, and transmitting the resource transfer message to a resource transfer system located outside of the ad hoc network communication link, comprises:
acquiring receiving states corresponding to the candidate receiving units respectively;
when a candidate receiving unit with the receiving state being the idle state exists, determining a target receiving unit from the candidate receiving units with the receiving state being the idle state;
when the receiving states corresponding to the candidate receiving units are busy states, determining a target receiving unit in the candidate receiving units based on the waiting queue lengths corresponding to the candidate receiving units;
and transmitting the resource transfer request to the target receiving unit, generating a resource transfer message by the target receiving unit based on the resource transfer request, and transmitting the resource transfer message to a resource transfer system positioned outside the Ad hoc network communication link.
5. The method according to claim 4, characterized in that the method comprises:
obtaining a connection request statistic value from the resource transfer management equipment; the connection request statistical value is obtained by the resource transfer management device counting the connection request numbers respectively corresponding to the plurality of candidate receiving devices in a monitoring period; the candidate receiving device is a resource receiving device which is connected with the resource transfer management device and managed by the resource transfer management device;
And adjusting the number of the candidate receiving units according to the connection request statistic value.
6. The method according to claim 1, wherein the method further comprises:
transmitting a link detection message to the resource transfer-out equipment;
receiving a response message which is returned by the resource transferring-out equipment and is aimed at the link detection message;
transmitting the link detection message and the response message to the resource transfer management device, so that the resource transfer management device determines the link state of an ad hoc network communication link between the resource receiving device and the resource transferring device based on the link detection message and the response message;
acquiring a link reestablishment instruction sent by the resource transfer management equipment when the link state is abnormal;
releasing an ad hoc network communication link with the resource transfer-out device in response to the link reestablishment instruction;
and sending an ad hoc network communication reconnection request to the resource transfer-out equipment so that the resource transfer-out equipment reestablishes an ad hoc network communication link with the resource receiving equipment in response to the ad hoc network communication reconnection request.
7. A resource transfer device, the device comprising:
The communication link establishment module is used for responding to an ad hoc network communication connection request sent by the resource transfer-out equipment and establishing an ad hoc network communication link between the resource transfer-out equipment and the communication link establishment module; wherein the ad hoc network communication is a communication mode independent of any fixed infrastructure;
a transfer request receiving module, configured to receive a resource transfer request sent by the resource transfer-out device through the ad hoc network communication link;
the resource transfer processing module is used for generating a resource transfer message based on the resource transfer request, and sending the resource transfer message to a resource transfer system positioned outside the self-organizing network communication link so that the resource transfer system executes resource transfer between the resource transfer-out equipment and the resource receiving equipment according to the resource transfer message;
the resource transfer system comprises a resource transfer system, a transfer result sending module and a resource transfer management device, wherein the resource transfer system is used for receiving a resource transfer result returned by the resource transfer system, and sending the resource transfer result to the resource transfer management device so that the resource transfer management device generates a resource transfer record based on the resource transfer result and detects the resource transfer record;
and the resource transfer rollback module is used for acquiring a resource transfer rollback instruction sent by the resource transfer management equipment when the detection result of the resource transfer record is abnormal, and carrying out resource transfer rollback aiming at the resource transfer request according to the resource transfer rollback instruction until the resource transfer between the resource transfer-out equipment and the resource receiving equipment is completed.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202310787951.7A 2023-06-29 2023-06-29 Resource transfer method, device, computer equipment and storage medium Pending CN117035757A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310787951.7A CN117035757A (en) 2023-06-29 2023-06-29 Resource transfer method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310787951.7A CN117035757A (en) 2023-06-29 2023-06-29 Resource transfer method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117035757A true CN117035757A (en) 2023-11-10

Family

ID=88640231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310787951.7A Pending CN117035757A (en) 2023-06-29 2023-06-29 Resource transfer method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117035757A (en)

Similar Documents

Publication Publication Date Title
US10326766B2 (en) Method and apparatus for optimizing mobile edge computing for nomadic computing capabilities as a service
KR101697414B1 (en) Shared network access via a peer-to-peer link
CN113115285A (en) Information processing method and device
US20230388385A1 (en) Connection processing method and apparatus, electronic device, and computer-readable storage medium
CN106028266B (en) Information transmission method, device and system
CN113535343A (en) Computing power sharing method based on network scheduling and related product
CN112188227A (en) Streaming media data distribution method and device
CN111541555A (en) Group chat optimization method and related product
CN110336592B (en) Data transmission method suitable for Bluetooth card reader, electronic equipment and storage medium
CN111510309B (en) Block chain data transmission method, device, equipment and computer readable storage medium
CN114765743A (en) Bluetooth communication method, electronic device, and storage medium
CN112333795A (en) Network access method and device
US20220104102A1 (en) Proximity device network
CN117035757A (en) Resource transfer method, device, computer equipment and storage medium
EP3209056B1 (en) Network side device in communication system and wireless communication system
US11064328B2 (en) Systems and methods for QoS aware SIM refresh
CN110704207B (en) Data processing method and device of business application middleware and storage medium
CN104899730B (en) Mobile terminal data processing method, terminal and system
CN112612959B (en) Push information processing method, device, equipment and medium
US20230276212A1 (en) Method and apparatus for exchanging service information in ultra-wide band system
JP2013074469A (en) On-vehicle communication apparatus, communication system, communication method, and program
CN113301542B (en) Pairing connection method and device, storage medium and electronic equipment
WO2023185820A1 (en) Event-based device operation method and apparatus, communication device, network side device, storage medium, and system
WO2023001032A1 (en) Method and apparatus for reporting system information report, and terminal and storage medium
CN116916417A (en) Networking method, networking device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination