CN116963062B - Mobile equipment interaction method and system based on near communication - Google Patents

Mobile equipment interaction method and system based on near communication Download PDF

Info

Publication number
CN116963062B
CN116963062B CN202311212812.8A CN202311212812A CN116963062B CN 116963062 B CN116963062 B CN 116963062B CN 202311212812 A CN202311212812 A CN 202311212812A CN 116963062 B CN116963062 B CN 116963062B
Authority
CN
China
Prior art keywords
data
verification
wifi
bluetooth
transmitted
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.)
Active
Application number
CN202311212812.8A
Other languages
Chinese (zh)
Other versions
CN116963062A (en
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.)
Shenzhen Amasen Technology Co ltd
Original Assignee
Shenzhen Amasen Technology Co 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 Shenzhen Amasen Technology Co ltd filed Critical Shenzhen Amasen Technology Co ltd
Priority to CN202311212812.8A priority Critical patent/CN116963062B/en
Publication of CN116963062A publication Critical patent/CN116963062A/en
Application granted granted Critical
Publication of CN116963062B publication Critical patent/CN116963062B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention is applicable to the technical field of near-distance communication, and particularly relates to a mobile equipment interaction method and system based on near-distance communication, wherein the method comprises the following steps: detecting NFC near communication signals, identifying the type of equipment, and entering a data interaction mode when the type of equipment is mobile equipment; carrying out Bluetooth connection and WIFI connection; transmitting a group of verification images through NFC near field communication signals, then disconnecting NFC near field communication, selecting data to be transmitted, and dividing the data to be transmitted based on the verification images to obtain a plurality of data packets; and transmitting the data packet, analyzing the data packet according to the verification image by the data receiving equipment, carrying out data verification, and reorganizing the data packet after the data verification is passed. The invention can transmit data in three modes simultaneously, not only can transmit verification data, but also can transmit data by utilizing Bluetooth and WIFI, thereby improving the data transmission speed and also can perform security verification.

Description

Mobile equipment interaction method and system based on near communication
Technical Field
The invention belongs to the technical field of near-distance communication, and particularly relates to a mobile equipment interaction method and system based on near-distance communication.
Background
Near field communication is a radio technology that enables high-speed data transmission over extremely short distances. Its operational range is limited to within a few tens of meters and is transported using semiconductor, microwave and super-optical fiber technologies. Short-range communication technology is generally used for wireless data transmission between mobile phones, computers, radio frequency identification devices, printers and radar systems so as to meet different requirements of users.
The short-distance communication technology has the advantages that the traditional long-distance transmission technology is low in efficiency and easy to lose information is changed into history, so that data transmission becomes faster and more effective, the communication application field is enriched, and the development of wireless interaction technology between people and equipment is promoted. For example, many mobile phones can perform high-bandwidth network communication through wireless WiFi technology, but the bandwidth technology is also based on close range communication technology, and in addition, NFC technology also belongs to the class of close range communication technology, and is mainly used for realizing wireless interaction between terminal devices.
In the current mobile devices, a plurality of short-range communication modules are commonly arranged, however, because the data interaction process between the mobile devices is complicated, users usually adopt a network to transmit data, and resource waste is caused.
Disclosure of Invention
The embodiment of the invention aims to provide a mobile equipment interaction method based on near communication, which aims to solve the problem that resources are wasted because users usually adopt a network to transmit data due to the fact that the data interaction process between mobile equipment is complicated.
The embodiment of the invention is realized in such a way that the mobile equipment interaction method based on near communication comprises the following steps:
detecting NFC near communication signals, identifying the type of equipment, and entering a data interaction mode when the type of equipment is mobile equipment;
receiving Bluetooth verification data and WIFI verification data through NFC short-range communication signals, and performing Bluetooth connection and WIFI connection based on the Bluetooth verification data and the WIFI verification data;
transmitting a group of verification images through NFC near field communication signals, then disconnecting NFC near field communication, selecting data to be transmitted, and dividing the data to be transmitted based on the verification images to obtain a plurality of data packets;
and transmitting the data packet, analyzing the data packet according to the verification image by the data receiving equipment, carrying out data verification, and reorganizing the data packet after the data verification is passed.
Preferably, the step of receiving bluetooth verification data and WIFI verification data through NFC near-field communication signals, and performing bluetooth connection and WIFI connection based on the bluetooth verification data and the WIFI verification data specifically includes:
receiving Bluetooth verification data and WIFI verification data through NFC short-range communication signals, wherein the Bluetooth verification data at least comprises a Bluetooth communication address, and the WIFI verification data at least comprises a WIFI name and a WIFI password;
the corresponding Bluetooth communication address is called from the Bluetooth verification data, and Bluetooth connection is carried out on the basis of the Bluetooth communication address and the data receiving equipment;
and the WIFI name and the WIFI password are called from the WIFI verification data, and the WIFI is connected with the data receiving equipment.
Preferably, the step of transmitting a group of verification images through NFC near field communication signals and then disconnecting NFC near field communication, selecting data to be transmitted, and dividing the data to be transmitted based on the verification images to obtain a plurality of data packets specifically includes:
transmitting a group of verification images through NFC near field communication signals, disconnecting NFC near field communication, and selecting data to be transmitted;
the verification image is called, and the verification image is segmented according to a preset proportion, so that a plurality of groups of grouping blocks and encoding blocks are obtained;
and carrying out pixel statistics on the grouped image blocks, dividing data to be transmitted to obtain a plurality of data packets, carrying out pixel statistics on the encoded image blocks, and determining the transmission sequence of each data packet.
Preferably, the data packet is transmitted, the data receiving device parses the data packet according to the verification image, performs data verification, and reassembles the data packet after the data verification is passed, which specifically includes:
transmitting data based on the data packets and transmitting at least one group of grouping blocks, and processing the verification images by the data receiving equipment to determine the sequence and the number of the data packets;
receiving a grouping block, and verifying the verification image based on the grouping block to obtain a verification result;
and judging whether to carry out data recombination based on the verification result, and splicing the data packets based on the sequence and the number of the data packets during data recombination to obtain the original data to be transmitted.
Preferably, the verification images are acquired randomly, and the verification images transmitted between the two groups of mobile devices are the same.
Preferably, when the device type is identified, it is determined whether the mobile device includes a bluetooth module and a WIFI module.
Another object of an embodiment of the present invention is to provide a mobile device interaction system based on short-range communication, the system including:
the device detection module is used for detecting NFC near communication signals, identifying the type of the device, and entering a data interaction mode when the type of the device is a mobile device;
the near-distance communication connection module is used for receiving Bluetooth verification data and WIFI verification data through NFC near-distance communication signals and carrying out Bluetooth connection and WIFI connection based on the Bluetooth verification data and the WIFI verification data;
the data segmentation module is used for transmitting a group of verification images through NFC near field communication signals, disconnecting NFC near field communication, selecting data to be transmitted, and segmenting the data to be transmitted based on the verification images to obtain a plurality of data packets;
and the data reorganization module is used for transmitting the data packet, the data receiving equipment analyzes the data packet according to the verification image, performs data verification, and reorganizes the data packet after the data verification is passed.
Preferably, the short-range communication connection module includes:
the data receiving unit is used for receiving Bluetooth verification data and WIFI verification data through NFC near-distance communication signals, the Bluetooth verification data at least comprise Bluetooth communication addresses, and the WIFI verification data at least comprise WIFI names and WIFI passwords;
the Bluetooth connection unit is used for calling a corresponding Bluetooth communication address from the Bluetooth verification data and carrying out Bluetooth connection with the data receiving equipment based on the Bluetooth communication address;
and the WIFI connection unit is used for calling the WIFI name and the WIFI password from the WIFI verification data and performing WIFI connection with the data receiving equipment.
Preferably, the data segmentation module includes:
the verification image transmission unit is used for transmitting a group of verification images through NFC near field communication signals, disconnecting NFC near field communication and selecting data to be transmitted;
the image segmentation unit is used for calling the verification image, and segmenting the verification image according to a preset proportion to obtain a plurality of groups of grouping blocks and encoding blocks;
the data splitting unit is used for carrying out pixel statistics on the grouped image blocks, dividing data to be transmitted to obtain a plurality of data packets, carrying out pixel statistics on the encoded image blocks, and determining the transmission sequence of each data packet.
Preferably, the data reorganization module includes:
the image processing unit is used for carrying out data transmission based on the data packets and transmitting at least one group of grouping blocks, and the data receiving equipment is used for processing the verification images and determining the sequence and the number of the data packets;
the image verification unit is used for receiving the grouping block, verifying the verification image based on the grouping block and obtaining a verification result;
and the data reorganization unit is used for judging whether to reorganize the data based on the verification result, and when the data reorganization is performed, the data packets are spliced based on the sequence and the number of the data packets to obtain the original data to be transmitted.
According to the mobile equipment interaction method based on the near-distance communication, through combining three near-distance communication modes at the same time, data transmission can be carried out through the three modes at the same time, verification data can be transmitted, data transmission can be carried out by utilizing Bluetooth and WIFI, data transmission speed is improved, and safety verification can be carried out.
Drawings
Fig. 1 is a flowchart of a mobile device interaction method based on near communication according to an embodiment of the present invention;
fig. 2 is a flowchart of steps for receiving bluetooth verification data and WIFI verification data through NFC near-field communication signals and performing bluetooth connection and WIFI connection based on the bluetooth verification data and the WIFI verification data according to an embodiment of the present invention;
fig. 3 is a flowchart of steps for disconnecting NFC near communications after a group of verification images are transmitted by NFC near communications signal transmission, selecting data to be transmitted, and dividing the data to be transmitted based on the verification images to obtain a plurality of data packets according to an embodiment of the present invention;
fig. 4 is a flowchart of a step of transmitting a data packet, where a data receiving device parses the data packet according to an authentication image, performs data authentication, and reassembles the data packet after the data authentication is passed;
fig. 5 is a schematic diagram of a mobile device interaction system based on short-range communication according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a telecommunications connection module according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a data splitting module according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a data reorganizing module according to an embodiment of the present invention.
Detailed Description
The present invention 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 invention 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 invention.
As shown in fig. 1, a flowchart of a mobile device interaction method based on short-range communication according to an embodiment of the present invention is shown, where the method includes:
s100, detecting NFC near communication signals, identifying the type of equipment, and entering a data interaction mode when the type of equipment is mobile equipment.
In this step, detecting NFC near communications signals, when in use, the NFC areas of two groups of mobile devices are attached, through the NFC sensing area, the two mobile devices can perform data interaction, in this process, the two mobile devices mutually identify the device model of the other party, determine whether the other party is a mobile device, and secondly, determine whether the other party mobile device has a bluetooth module and a WIFI module, if only includes the WIFI module or the bluetooth module, the data interaction mode cannot be entered, after entering the data interaction mode, the two mobile devices can mutually receive data, that is, after the a mobile device and the B mobile device are connected, the a mobile device can send data to the B mobile device, and also can directly receive data from the B mobile device.
S200, bluetooth verification data and WIFI verification data are received through NFC short-range communication signals, and Bluetooth connection and WIFI connection are performed based on the Bluetooth verification data and the WIFI verification data.
In this step, bluetooth verification data and WIFI verification data are received through NFC short-range communication signals, after identity verification is performed through NFC, it is described that two groups of mobile devices can trust each other, therefore, bluetooth verification data and WIFI verification data can be directly transmitted, bluetooth verification data are used for bluetooth connection between two mobile devices, WIFI verification data are used for WIFI connection between two groups of mobile devices, bluetooth verification data record bluetooth addresses of mobile devices when bluetooth modules of the mobile devices are connected, connection can be directly performed, WIFI verification data record names and passwords of WIFI modules of the mobile devices, direct connection can also be performed, and after connection is completed, data transmission can be performed simultaneously through bluetooth and WIFI.
S300, transmitting a group of verification images through NFC near field communication signals, then disconnecting NFC near field communication, selecting data to be transmitted, and dividing the data to be transmitted based on the verification images to obtain a plurality of data packets.
In this step, after a group of verification images are mutually transmitted through NFC near-range communication signal transmission, NFC near-range communication is disconnected, and after primary NFC connection is performed, bluetooth and WIFI are synchronously connected, so that in order to ensure that the mobile devices corresponding to bluetooth and WIFI are the same and ensure data security, two groups of mobile devices mutually transmit a group of verification images in an NFC near-range communication manner, the verification images are a group of binary images with the same size provided by the two parties respectively, the two groups of verification images are superimposed, so as to obtain verification images, the verification images are divided into a plurality of small blocks based on a preset image segmentation method, statistics is performed based on pixel information contained in each small block, and therefore the segmentation proportion of data to be transmitted is determined, and the transmission sequence of data packets obtained by segmentation is determined.
S400, transmitting the data packet, analyzing the data packet by the data receiving equipment according to the verification image, carrying out data verification, and reorganizing the data packet after the data verification is passed.
In this step, the data packets are transmitted, specifically, in the previous step, the data to be transmitted is divided into a plurality of small data packets, the size of each data packet is determined randomly, the transmission sequence of each data packet is determined randomly, all data packets are transmitted to the data receiving device based on the transmission sequence, for two groups of mobile devices, one group of mobile devices transmits data, the other group of mobile devices is the data receiving device, in the process, the data packets are transmitted through WIFI, and at least one group of local image blocks of verification images are transmitted through bluetooth, after the data receiving device receives the data packets and the local image blocks of the verification images, the data receiving device compares the local image blocks with the verification images stored in the data receiving device, so that identity verification is completed, after verification is completed, the verification images are processed, split, the splitting mode and the transmission sequence of the data packets are determined, and the data packets to be transmitted are obtained by integrating the received data packets based on the information.
As shown in fig. 2, as a preferred embodiment of the present invention, the steps of receiving bluetooth authentication data and WIFI authentication data through NFC proximity communication signals, and performing bluetooth connection and WIFI connection based on the bluetooth authentication data and the WIFI authentication data specifically include:
s201, bluetooth verification data and WIFI verification data are received through NFC short-range communication signals, the Bluetooth verification data at least comprise Bluetooth communication addresses, and the WIFI verification data at least comprise WIFI names and WIFI passwords.
In this step, bluetooth verification data and WIFI verification data are received through NFC near-range communication signals, when two groups of NFC devices approach each other, NFC modules in the two groups of mobile devices will read data from each other, so as to complete identity verification, and after verification, bluetooth verification data and WIFI verification data begin to be received.
S202, a corresponding Bluetooth communication address is called from the Bluetooth verification data, and Bluetooth connection is carried out with the data receiving device based on the Bluetooth communication address.
In this step, the corresponding bluetooth communication address is called from the bluetooth verification data, and after bluetooth communication is obtained, even if NFC connection is disconnected, two groups of mobile devices can still find each other through the bluetooth address, thereby completing bluetooth connection.
S203, the WIFI name and the WIFI password are called from the WIFI verification data, and the WIFI is connected with the data receiving device.
In this step, retrieve WIFI name and WIFI password from WIFI verification data, based on the same principle, through carrying out WIFI signal detection, can detect corresponding WIFI name to connect with corresponding WIFI password, thereby accomplish the WIFI connection.
As shown in fig. 3, as a preferred embodiment of the present invention, the steps of transmitting a group of verification images through NFC near field communication signal transmission, disconnecting NFC near field communication, selecting data to be transmitted, and dividing the data to be transmitted based on the verification images to obtain a plurality of data packets specifically include:
s301, transmitting a group of verification images through NFC near field communication signals, disconnecting NFC near field communication, and selecting data to be transmitted.
In this step, after a group of verification images are mutually transmitted through NFC near-range communication signal transmission, the NFC near-range communication is disconnected, first, when two groups of mobile devices are connected through NFC, the two groups of mobile devices mutually transmit a group of binary images, the binary images can be randomly generated, and the two binary images need to be kept in the same size, so that the two images are subjected to superposition processing to obtain the verification images, and at the moment, the NFC connection is disconnected, and the data to be transmitted required to be transmitted at this time is selected.
S302, the verification image is called, and the verification image is segmented according to a preset proportion, so that a plurality of groups of grouping blocks and encoding blocks are obtained.
In this step, the verification image is called, the verification image is divided into two parts, the first partial image and the second partial image are described below, and the first partial image and the second partial image are equally divided into N identical-sized image blocks, namely a grouping image block and a coding image block.
S303, carrying out pixel statistics on the block diagram, dividing data to be transmitted to obtain a plurality of data packets, carrying out pixel statistics on the encoded block diagram, and determining the transmission sequence of each data packet.
In this step, pixel statistics is performed on the block, and the sum of gray values of each pixel in each block is counted, so that N block segments will obtain N sums of gray values, the same N code segments will obtain N sums of gray values, each block segment is numbered based on the segmentation order, the same code segment is numbered, the segmentation ratio is calculated based on the sum of gray values corresponding to N block segments, for example, n=3, the sum of three gray values is A1, A2 and A3, and the segmentation ratio of the data to be transmitted from beginning to end is A1: a2: a3 The code block corresponding to A1 is numbered 1, the code block corresponding to A2 is numbered 2, the code block corresponding to A3 is numbered 3, and if the sum of ear gray values of the three groups of code blocks is B1, B2 and B3 respectively, and B3> B2> B1, the transmission sequence is A3, A2 and A1.
As shown in fig. 4, as a preferred embodiment of the present invention, the data packet is transmitted, the data receiving device parses the data packet according to the verification image, performs data verification, and reassembles the data packet after the data verification is passed, which specifically includes:
s401, data transmission is carried out based on the data packets, at least one group of grouping blocks are transmitted, the data receiving device processes the verification image, and the sequence and the number of the data packets are determined.
In this step, data transmission is performed based on the data packet and at least one group of block blocks is transmitted, the block blocks are components of the verification image, so after the data receiving device receives the block blocks, the block blocks can be compared with the verification image, thereby verifying the security of the data source, and then the verification image is processed based on the same processing mode to determine the sequence and the number of the data packet.
S402, receiving the grouping block, and verifying the verification image based on the grouping block to obtain a verification result.
S403, judging whether to carry out data recombination based on the verification result, and splicing the data packets based on the sequence and the number of the data packets during data recombination to obtain the original data to be transmitted.
In the step, whether the data is recombined is judged based on the verification result, if the grouping block can be completely overlapped with the local pixels in the verification image, the data is required to be recombined, otherwise, the data is not recombined, and the corresponding data packets are sequentially called for integration through determining the obtained numbers, so that the original data to be transmitted can be obtained.
As shown in fig. 5, a mobile device interaction system based on short-range communication according to an embodiment of the present invention includes:
the device detection module 100 is configured to detect an NFC near communications signal, identify a device type, and enter a data interaction mode when the device type is a mobile device.
In the system, the device detection module 100 detects NFC near-distance communication signals, when in use, the NFC areas of two groups of mobile devices are tightly attached, through the NFC sensing area, the two mobile devices can perform data interaction, in this process, the two mobile devices mutually identify the device model of the other party, determine whether the other party is a mobile device, secondly, determine whether the other party mobile device has a bluetooth module and a WIFI module, if the other party mobile device only contains the WIFI module or the bluetooth module, the data interaction mode cannot be entered, after entering the data interaction mode, the two mobile devices can mutually receive data, namely, after the mobile device a and the mobile device B are connected, the mobile device a can send data to the mobile device B, and also can directly receive data from the mobile device B.
The near-distance communication connection module 200 is configured to receive bluetooth verification data and WIFI verification data through NFC near-distance communication signals, and perform bluetooth connection and WIFI connection based on the bluetooth verification data and the WIFI verification data.
In this system, the near-distance communication connection module 200 receives bluetooth verification data and WIFI verification data through NFC near-distance communication signals, after authentication is performed through NFC, it is described that two groups of mobile devices can trust each other, therefore, bluetooth verification data and WIFI verification data can be directly transmitted, where bluetooth verification data is used for bluetooth connection between two mobile devices, and WIFI verification data is used for WIFI connection between two groups of mobile devices, where bluetooth verification data records a bluetooth address when bluetooth modules of the mobile devices are connected, and can be directly connected, WIFI verification data records names and passwords of WIFI modules in the mobile devices, so that direct connection can also be performed, and after connection is completed, data transmission can be performed simultaneously through bluetooth and WIFI.
The data segmentation module 300 is configured to disconnect NFC near communications after transmitting a group of verification images through NFC near communications signal transmission, select data to be transmitted, and segment the data to be transmitted based on the verification images to obtain a plurality of data packets.
In the system, the data segmentation module 300 transmits a group of verification images through NFC near-field communication signals, and then disconnects NFC near-field communication, and after primary NFC connection is performed, bluetooth and WIFI are synchronously connected, so that in order to ensure that the mobile devices corresponding to bluetooth and WIFI are the same and ensure the safety of data, two groups of mobile devices transmit a group of verification images through NFC near-field communication, the verification images are two groups of binary images with the same size provided by the two parties, the two groups of verification images are superimposed, and a verification image is obtained.
The data reorganizing module 400 is configured to transmit the data packet, and the data receiving device parses the data packet according to the verification image, performs data verification, and reorganizes the data packet after the data verification passes.
In the present system, the data reorganizing module 400 transmits data packets, specifically, in the previous step, the data to be transmitted is randomly divided into a plurality of small data packets, the size of each data packet is randomly determined, the transmission sequence of each data packet is also randomly determined, all data packets are transmitted to the data receiving device based on the transmission sequence, for two groups of mobile devices, one group of mobile devices transmits data, the other group of mobile devices is a data receiving device, in the process, the data packets are transmitted through WIFI, and at least one group of local image blocks of the verification image are transmitted through bluetooth, after the data receiving device receives the data packets and the local image blocks of the verification image, the local image blocks are compared with the verification image stored in the data receiving device, so that identity verification is completed, after verification is completed, the verification image is processed based on the same mode, the division is performed, so as to determine the division mode and the transmission sequence of the data packets, and the received data packets are integrated based on the information, so as to obtain the transmitted data to be transmitted.
As shown in fig. 6, as a preferred embodiment of the present invention, the telecommunications connection module 200 includes:
the data receiving unit 201 is configured to receive bluetooth verification data and WIFI verification data through an NFC near-distance communication signal, where the bluetooth verification data at least includes a bluetooth communication address, and the WIFI verification data at least includes a WIFI name and a WIFI password.
In this module, the data receiving unit 201 receives bluetooth verification data and WIFI verification data through NFC short-range communication signals, when two groups of NFC devices are close to each other, NFC modules in the two groups of mobile devices will read data from each other, so as to complete identity verification, and after verification, the data receiving unit starts to receive bluetooth verification data and WIFI verification data.
The bluetooth connection unit 202 is configured to retrieve a corresponding bluetooth communication address from the bluetooth verification data, and perform bluetooth connection with the data receiving device based on the bluetooth communication address.
In this module, the bluetooth connection unit 202 retrieves the corresponding bluetooth communication address from the bluetooth verification data, and after bluetooth communication is obtained, even if NFC connection is disconnected, two groups of mobile devices can still find each other through the bluetooth address, thereby completing bluetooth connection.
The WIFI connection unit 203 is configured to retrieve a WIFI name and a WIFI password from the WIFI verification data, and perform WIFI connection with the data receiving device.
In this module, WIFI connection unit 203 retrieves WIFI name and WIFI password from the WIFI verification data, based on the same principle, through carrying out the WIFI signal detection, can detect corresponding WIFI name to connect with corresponding WIFI password, thereby accomplish the WIFI connection.
As shown in fig. 7, as a preferred embodiment of the present invention, the data splitting module 300 includes:
the authentication image transmission unit 301 is configured to transmit a group of authentication images via NFC near field communication signals, disconnect NFC near field communication, and select data to be transmitted.
In this module, the verification image transmission unit 301 transmits a group of verification images through NFC near-range communication signals, and then disconnects NFC near-range communication, first, when two groups of mobile devices are connected through NFC, they mutually transmit a group of binary images, where the binary images may be randomly generated, and the binary images need to be kept in the same size, so that they are overlapped to obtain a verification image, and at this time, the NFC connection is disconnected, and the data to be transmitted that needs to be transmitted this time is selected.
The image segmentation unit 302 is configured to retrieve the verification image, segment the verification image according to a preset ratio, and obtain a plurality of groups of grouping blocks and encoding blocks.
In this module, the image segmentation unit 302 invokes the verification image, divides the verification image into two parts, and describes the first partial image and the second partial image in the following, and equally divides the first partial image and the second partial image into N tiles with the same size, which are respectively a grouping tile and a coding tile.
The data splitting unit 303 is configured to perform pixel statistics on the grouped tiles, divide the data to be transmitted to obtain a plurality of data packets, perform pixel statistics on the encoded tiles, and determine a transmission sequence of each data packet.
In this module, the data splitting unit 303 performs pixel statistics on the packet blocks, and counts the sum of gray values of each pixel in each packet block, so that N packet blocks will obtain the sum of N gray values, the same N encoded blocks will obtain the sum of N gray values, numbers are performed on each packet block based on the segmentation order, numbers are also performed on each encoded block, and the segmentation ratio is calculated based on the sum of gray values corresponding to N packet blocks, for example, n=3, where the sum of three gray values is A1, A2, and A3, respectively, and the segmentation ratio of the data to be transmitted from beginning to end is A1: a2: a3 The code block corresponding to A1 is numbered 1, the code block corresponding to A2 is numbered 2, the code block corresponding to A3 is numbered 3, and if the sum of ear gray values of the three groups of code blocks is B1, B2 and B3 respectively, and B3> B2> B1, the transmission sequence is A3, A2 and A1.
As shown in fig. 8, as a preferred embodiment of the present invention, the data reorganizing module 400 includes:
an image processing unit 401 for transmitting data based on the data packets and transmitting at least one group of packet blocks, and the data receiving device processes the verification image to determine the order and number of the data packets.
In this module, the image processing unit 401 performs data transmission based on the data packet and transmits at least one group of packet blocks, wherein the packet blocks are components of the verification image, so that after the data receiving device receives the packet blocks, the packet blocks can be compared with the verification image, thereby verifying the security of the data source, and then the verification image is processed based on the same processing manner to determine the sequence and the number of the data packet.
The image verification unit 402 is configured to receive the grouping block, verify the verification image based on the grouping block, and obtain a verification result.
And the data reorganizing unit 403 is configured to determine whether to reorganize data based on the verification result, and splice the data packets based on the sequence and the number of the data packets during data reorganization, so as to obtain original data to be transmitted.
In the module, whether data reorganization is carried out is judged based on the verification result, if the grouping block can be completely overlapped with the local pixels in the verification image, the data reorganization is needed, otherwise, the data reorganization is not carried out, and the corresponding data packets are sequentially called for integration through determining the obtained numbers, so that the original data to be transmitted can be obtained.
In one embodiment, a computer device is presented, the computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
detecting NFC near communication signals, identifying the type of equipment, and entering a data interaction mode when the type of equipment is mobile equipment;
receiving Bluetooth verification data and WIFI verification data through NFC short-range communication signals, and performing Bluetooth connection and WIFI connection based on the Bluetooth verification data and the WIFI verification data;
transmitting a group of verification images through NFC near field communication signals, then disconnecting NFC near field communication, selecting data to be transmitted, and dividing the data to be transmitted based on the verification images to obtain a plurality of data packets;
and transmitting the data packet, analyzing the data packet according to the verification image by the data receiving equipment, carrying out data verification, and reorganizing the data packet after the data verification is passed.
In one embodiment, a computer readable storage medium is provided, having a computer program stored thereon, which when executed by a processor causes the processor to perform the steps of:
detecting NFC near communication signals, identifying the type of equipment, and entering a data interaction mode when the type of equipment is mobile equipment;
receiving Bluetooth verification data and WIFI verification data through NFC short-range communication signals, and performing Bluetooth connection and WIFI connection based on the Bluetooth verification data and the WIFI verification data;
transmitting a group of verification images through NFC near field communication signals, then disconnecting NFC near field communication, selecting data to be transmitted, and dividing the data to be transmitted based on the verification images to obtain a plurality of data packets;
and transmitting the data packet, analyzing the data packet according to the verification image by the data receiving equipment, carrying out data verification, and reorganizing the data packet after the data verification is passed.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in order as indicated by the arrows, these steps are not necessarily performed in order as 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 various embodiments may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described 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 invention and are described in detail herein without thereby limiting the scope of the invention. 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 invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.

Claims (8)

1. A method for interacting with a mobile device based on near communications, the method comprising:
detecting NFC near communication signals, identifying the type of equipment, and entering a data interaction mode when the type of equipment is mobile equipment;
receiving Bluetooth verification data and WIFI verification data through NFC short-range communication signals, and performing Bluetooth connection and WIFI connection based on the Bluetooth verification data and the WIFI verification data;
transmitting a group of verification images through NFC near-range communication signals, disconnecting NFC near-range communication, selecting data to be transmitted, and dividing the data to be transmitted based on the verification images to obtain a plurality of data packets;
transmitting the data packet, analyzing the data packet according to the verification image by the data receiving equipment, carrying out data verification, and reorganizing the data packet after the data verification is passed;
the step of receiving bluetooth verification data and WIFI verification data through NFC near communication signals, carrying out bluetooth connection and WIFI connection based on the bluetooth verification data and the WIFI verification data specifically comprises the following steps:
receiving Bluetooth verification data and WIFI verification data through NFC short-range communication signals, wherein the Bluetooth verification data at least comprises a Bluetooth communication address, and the WIFI verification data at least comprises a WIFI name and a WIFI password;
the corresponding Bluetooth communication address is called from the Bluetooth verification data, and Bluetooth connection is carried out on the basis of the Bluetooth communication address and the data receiving equipment;
and the WIFI name and the WIFI password are called from the WIFI verification data, and the WIFI is connected with the data receiving equipment.
2. The method for interacting with a mobile device based on near field communication according to claim 1, wherein the step of disconnecting the NFC near field communication after transmitting a group of verification images to each other via NFC near field communication signals, selecting data to be transmitted, and dividing the data to be transmitted based on the verification images to obtain a plurality of data packets comprises:
transmitting a group of verification images through NFC near field communication signals, disconnecting NFC near field communication, and selecting data to be transmitted;
the verification image is called, and the verification image is segmented according to a preset proportion, so that a plurality of groups of grouping blocks and encoding blocks are obtained;
and carrying out pixel statistics on the grouped image blocks, dividing data to be transmitted to obtain a plurality of data packets, carrying out pixel statistics on the encoded image blocks, and determining the transmission sequence of each data packet.
3. The interaction method of mobile device based on near communication according to claim 2, wherein the transmitting the data packet, the data receiving device analyzing the data packet according to the verification image, and performing data verification, and the step of reorganizing the data packet after the data verification is passed specifically comprises:
transmitting data based on the data packets and transmitting at least one group of grouping blocks, and processing the verification images by the data receiving equipment to determine the sequence and the number of the data packets;
receiving a grouping block, and verifying the verification image based on the grouping block to obtain a verification result;
and judging whether to carry out data recombination based on the verification result, and splicing the data packets based on the sequence and the number of the data packets during data recombination to obtain the original data to be transmitted.
4. The mobile device interaction method based on near-distance communication according to claim 1, wherein the verification images are acquired randomly, and the verification images transmitted between two groups of mobile devices are the same.
5. The method for interacting with a mobile device based on near field communication according to claim 1, wherein when the device type is identified, it is determined whether the mobile device includes a bluetooth module and a WIFI module.
6. A mobile device interactive system based on near communications, the system comprising:
the device detection module is used for detecting NFC near communication signals, identifying the type of the device, and entering a data interaction mode when the type of the device is a mobile device;
the near-distance communication connection module is used for receiving Bluetooth verification data and WIFI verification data through NFC near-distance communication signals and carrying out Bluetooth connection and WIFI connection based on the Bluetooth verification data and the WIFI verification data;
the data segmentation module is used for mutually transmitting a group of verification images through NFC near-range communication signals, disconnecting NFC near-range communication, selecting data to be transmitted, and segmenting the data to be transmitted based on the verification images to obtain a plurality of data packets;
the data reorganization module is used for transmitting the data packet, the data receiving equipment analyzes the data packet according to the verification image, performs data verification, and reorganizes the data packet after the data verification is passed;
the near communication connection module comprises:
the data receiving unit is used for receiving Bluetooth verification data and WIFI verification data through NFC near-distance communication signals, the Bluetooth verification data at least comprise Bluetooth communication addresses, and the WIFI verification data at least comprise WIFI names and WIFI passwords;
the Bluetooth connection unit is used for calling a corresponding Bluetooth communication address from the Bluetooth verification data and carrying out Bluetooth connection with the data receiving equipment based on the Bluetooth communication address;
and the WIFI connection unit is used for calling the WIFI name and the WIFI password from the WIFI verification data and performing WIFI connection with the data receiving equipment.
7. The near field communication based mobile device interaction system of claim 6, wherein the data splitting module comprises:
the verification image transmission unit is used for mutually transmitting a group of verification images through NFC near field communication signals, disconnecting NFC near field communication and selecting data to be transmitted;
the image segmentation unit is used for calling the verification image, and segmenting the verification image according to a preset proportion to obtain a plurality of groups of grouping blocks and encoding blocks;
the data splitting unit is used for carrying out pixel statistics on the grouped image blocks, dividing data to be transmitted to obtain a plurality of data packets, carrying out pixel statistics on the encoded image blocks, and determining the transmission sequence of each data packet.
8. The near field communication based mobile device interaction system of claim 6, wherein the data reorganization module comprises:
the image processing unit is used for carrying out data transmission based on the data packets and transmitting at least one group of grouping blocks, and the data receiving equipment is used for processing the verification images and determining the sequence and the number of the data packets;
the image verification unit is used for receiving the grouping block, verifying the verification image based on the grouping block and obtaining a verification result;
and the data reorganization unit is used for judging whether to reorganize the data based on the verification result, and when the data reorganization is performed, the data packets are spliced based on the sequence and the number of the data packets to obtain the original data to be transmitted.
CN202311212812.8A 2023-09-20 2023-09-20 Mobile equipment interaction method and system based on near communication Active CN116963062B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311212812.8A CN116963062B (en) 2023-09-20 2023-09-20 Mobile equipment interaction method and system based on near communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311212812.8A CN116963062B (en) 2023-09-20 2023-09-20 Mobile equipment interaction method and system based on near communication

Publications (2)

Publication Number Publication Date
CN116963062A CN116963062A (en) 2023-10-27
CN116963062B true CN116963062B (en) 2024-03-29

Family

ID=88462485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311212812.8A Active CN116963062B (en) 2023-09-20 2023-09-20 Mobile equipment interaction method and system based on near communication

Country Status (1)

Country Link
CN (1) CN116963062B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103781068A (en) * 2012-10-18 2014-05-07 中兴通讯股份有限公司 Data transmission method and terminal device
WO2014135982A1 (en) * 2013-03-06 2014-09-12 Assa Abloy Ab Instant mobile device based data capture and credentials issuance system
CN110149622A (en) * 2019-06-06 2019-08-20 海尔优家智能科技(北京)有限公司 Intelligent electrical appliance control and device
CN111160424A (en) * 2019-12-16 2020-05-15 南方电网科学研究院有限责任公司 NFC equipment fingerprint authentication method and system based on CNN image identification
CN116132037A (en) * 2023-02-17 2023-05-16 中国人民解放军海军工程大学 Safety hidden communication method
CN116684595A (en) * 2023-05-11 2023-09-01 广州美凯信息技术股份有限公司 Ultra-low-time-delay image coding system, method and device and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20220126463A (en) * 2021-03-09 2022-09-16 삼성에스디에스 주식회사 Method for proving original of data, and apparatus therefor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103781068A (en) * 2012-10-18 2014-05-07 中兴通讯股份有限公司 Data transmission method and terminal device
WO2014135982A1 (en) * 2013-03-06 2014-09-12 Assa Abloy Ab Instant mobile device based data capture and credentials issuance system
CN110149622A (en) * 2019-06-06 2019-08-20 海尔优家智能科技(北京)有限公司 Intelligent electrical appliance control and device
CN111160424A (en) * 2019-12-16 2020-05-15 南方电网科学研究院有限责任公司 NFC equipment fingerprint authentication method and system based on CNN image identification
CN116132037A (en) * 2023-02-17 2023-05-16 中国人民解放军海军工程大学 Safety hidden communication method
CN116684595A (en) * 2023-05-11 2023-09-01 广州美凯信息技术股份有限公司 Ultra-low-time-delay image coding system, method and device and storage medium

Also Published As

Publication number Publication date
CN116963062A (en) 2023-10-27

Similar Documents

Publication Publication Date Title
CN110691384B (en) Network slice using method and device
CN106953909B (en) Intelligent charging monitoring system and control method for Internet of things card
CN113067859B (en) Communication method and device based on cloud mobile phone
CN103259797A (en) Data file transmission method and platform
US11057392B2 (en) Data security method utilizing mesh network dynamic scoring
CN105592019A (en) Method for bidirectional access to application between dual execution environments
CN107969003B (en) Wireless access authentication method
CN109831782B (en) Safety transmission verification method for electronic card information
CN111260475A (en) Data processing method, block chain node point equipment and storage medium
CN113795008B (en) V2X signature verification method and device, electronic equipment and readable storage medium
CN116963062B (en) Mobile equipment interaction method and system based on near communication
CN111371896B (en) Network acceleration method, terminal and storage medium
CN109151790B (en) Bluetooth device connection method and system based on network security
CN103281693A (en) Wireless communication authentication method, network translation equipment and terminal
CN104135458A (en) Establishment of communication connection between mobile equipment and secure carrier
CN110650132A (en) Access method and device of edge computing node, computer equipment and storage medium
CN102946594B (en) Method for automatically obtaining equipment information in Telematics system during using navigation with one key
CN109862027A (en) Data transmission method for uplink, data receiver method and equipment, data transmission system
US11395129B2 (en) Virtual sim card acquisition method, subscriber terminal and server
CN110198294A (en) Security attack detection method and device
CN115801299A (en) Meta-universe identity authentication method, device, equipment and storage medium
CN112019603A (en) Transaction data processing method and device
CN108076460B (en) Method and terminal for authentication
CN105550577A (en) Security control method and system for terminal container
CN112202725B (en) Service verification method and device

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
GR01 Patent grant
GR01 Patent grant