CN111542033A - Near-field data transmission method and device and computer readable storage medium - Google Patents

Near-field data transmission method and device and computer readable storage medium Download PDF

Info

Publication number
CN111542033A
CN111542033A CN202010337244.4A CN202010337244A CN111542033A CN 111542033 A CN111542033 A CN 111542033A CN 202010337244 A CN202010337244 A CN 202010337244A CN 111542033 A CN111542033 A CN 111542033A
Authority
CN
China
Prior art keywords
terminal
near field
communication network
field communication
data
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
CN202010337244.4A
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.)
Shenzhen Microphone Holdings Co Ltd
Shenzhen Transsion Holdings Co Ltd
Original Assignee
Shenzhen Microphone Holdings 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 Microphone Holdings Co Ltd filed Critical Shenzhen Microphone Holdings Co Ltd
Priority to CN202010337244.4A priority Critical patent/CN111542033A/en
Publication of CN111542033A publication Critical patent/CN111542033A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Abstract

The application discloses a near field transmission method and device of data and a computer readable storage medium. The method comprises the following steps: the first terminal is connected with a near field communication network, and the near field communication network comprises near field communication connection information; the second terminal is connected with the near field communication network, and the first terminal is in communication connection with at least one second terminal through the near field communication network; the first terminal selects at least one data message to be transmitted to at least one second terminal through the near field communication network. The data can be shared to a plurality of users at the same time under the condition of no network.

Description

Near-field data transmission method and device and computer readable storage medium
Technical Field
The present application relates to the field of near field transmission, and in particular, to a method and an apparatus for near field transmission of data, and a computer readable storage medium.
Background
With the increase of the use frequency of mobile terminals such as smart phones and tablet computers, a large amount of data such as pictures, videos, documents and application programs are stored in the mobile terminals. When a user needs to share data in the mobile terminal to other multiple users without a network, only one-to-one unidirectional data transmission can be realized by using a traditional near field communication technology (such as a Wi-Fi Direct communication technology, a Wi-FiAware communication technology, a bluetooth communication technology and the like), and the data cannot be simultaneously shared to the multiple users without the network.
Disclosure of Invention
The application discloses a near field transmission method and device of data and a computer readable storage medium, which can realize that the data can be shared to a plurality of users at the same time under the condition of no network.
In a first aspect, the present application provides a method for near-field transmission of data, the method comprising:
the first terminal is connected with a near field communication network, and the near field communication network comprises near field communication connection information;
the second terminal is connected with the near field communication network, and the first terminal is in communication connection with at least one second terminal through the near field communication network;
the first terminal selects at least one data message to be transmitted to at least one second terminal through the near field communication network.
In one embodiment, the method comprises: the first terminal selects a plurality of data messages; the first terminal selects a plurality of second terminals to establish communication connection; and the first terminal simultaneously transmits the data information to the second terminals establishing communication connection.
In one embodiment, the method comprises: when the first terminal is connected with the second terminal in a communication connection mode, the first terminal, the second terminal with the established communication connection mode and the second terminal without the established communication connection mode are still in the near field communication network.
In one embodiment, the method comprises: the second terminal may communicate information with the first terminal and other second terminals via the near field communication network.
In one embodiment, the method comprises: the near field communication connection information comprises a communication code and/or a near field communication network address and/or near field communication network information used for the second terminal to connect the near field communication network.
In one embodiment, the method comprises: the first terminal acquires a historical second terminal identifier of historical communication; the first terminal searches whether a second terminal with historical communication corresponding to the historical second terminal identification exists in the communication range of the near field communication network; and if so, the first terminal sends connection invitation information to the second terminal of the historical communication, wherein the connection invitation information is used for the second terminal of the historical communication to be connected with the near field communication network.
In one embodiment, the method comprises: the first terminal receives a near field communication network connection request sent by a second terminal, wherein the near field communication network connection request is used for the second terminal to connect the near field communication network; and the first terminal responds to the request for connecting the near field communication network and allows the second terminal to be connected with the near field communication network.
In one embodiment, the method comprises: the first terminal acquires a communication record of the second terminal, wherein the communication record comprises the communication times and communication contents of the second terminal with the first terminal and other second terminals through the near field communication network; the first terminal judges whether the communication frequency of the second terminal meets a preset communication frequency or not and whether the communication content comprises unhealthy information or not, wherein the unhealthy information comprises illegal violation information and information reported by the first terminal and other second terminals; and if so, the first terminal interrupts the connection between the second terminal and the near field communication network.
In a second aspect, the present application provides an apparatus for near field transmission of data, comprising:
the terminal comprises a connecting unit, a receiving unit and a processing unit, wherein the connecting unit is used for connecting a first terminal with a near field communication network, and the near field communication network comprises near field communication connection information;
the connection unit is used for connecting the second terminal with the near field communication network, and the first terminal establishes communication connection with at least one second terminal through the near field communication network;
and the communication unit is used for the first terminal to select at least one data message to be transmitted to at least one second terminal through the near field communication network.
In a third aspect, the present application provides an apparatus for near-field data transmission, including a processor, a memory, and a communication interface, where the processor, the memory, and the communication interface are connected to each other, where the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method for near-field data transmission according to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon one or more instructions adapted to be loaded by a processor and to perform the method for near field transmission of data according to the first aspect.
In the application, a first terminal is connected with a near field communication network, and the near field communication network comprises near field communication connection information; the second terminal is connected with the near field communication network, and the first terminal is in communication connection with at least one second terminal through the near field communication network; the first terminal selects at least one data message to be transmitted to at least one second terminal through the near field communication network. The first terminal carries out data transmission with the plurality of second terminals through the near field communication network, and the data can be shared to a plurality of users under the condition that the network does not exist.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a scene architecture diagram of data transmission provided in an embodiment of the present application;
fig. 2 is a flowchart of a method for near-field data transmission according to an embodiment of the present disclosure;
fig. 3(a) and fig. 3(b) are flowcharts of another near field data transmission method provided in the embodiment of the present application;
fig. 4 is a flowchart of another method for near-field data transmission according to an embodiment of the present disclosure;
fig. 5 is a flowchart of a method for near-field data transmission according to an embodiment of the present disclosure;
fig. 6 is a flowchart of another method for near-field data transmission according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an apparatus for near field data transmission according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of another apparatus for near field data transmission according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of another near-field data transmission apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a scene architecture diagram of data transmission according to an embodiment of the present application. As shown in fig. 1, the terminal includes a first terminal 101, a second terminal 102, and a near field communication network 103. The number of the second terminals shown in fig. 1 is only an example, and the application does not limit the number of the second terminals.
The first terminal 101 and the second terminal 102 may include, but are not limited to: smart phones (such as Android phones, iOS phones, etc.), tablet computers, portable personal computers, mobile internet devices (MID for short), and the like, which are not limited in the embodiments of the present invention.
In the near-field data transmission method shown in fig. 1, the data transmission process mainly includes: firstly, a first terminal 101 is connected with a near field communication network 103, and the near field communication network 103 comprises near field communication connection information; the second terminal 102 is connected with the near field communication network 103, and the first terminal 101 establishes communication connection with at least one second terminal 102 through the near field communication network 103; the first terminal 101 selects at least one data message to be transmitted to at least one second terminal 102 through the near field communication network 103.
According to the data near field transmission method, the first terminal is connected with a near field communication network, and the near field communication network comprises near field communication connection information; the second terminal is connected with the near field communication network, and the first terminal is in communication connection with at least one second terminal through the near field communication network; the first terminal selects at least one data message to be transmitted to at least one second terminal through the near field communication network. The first terminal carries out data transmission with the plurality of second terminals through the near field communication network, and the data can be shared to a plurality of users under the condition that the network does not exist.
The following describes a method for near-field transmission of data provided by the present application in detail.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for near field data transmission according to an embodiment of the present disclosure. The near field transmission method of the data can be realized by the interaction of the first terminal and a plurality of second terminals shown in fig. 1; as shown in fig. 2, the method for near field data transmission includes, but is not limited to, the following steps 201 to 203, and the method shown in fig. 2 is mainly described by taking a first terminal and a second terminal as an example.
S201, the first terminal is connected with a near field communication network, and the near field communication network comprises near field communication connection information.
The near field communication network may be a Wi-Fi Direct communication network, a Wi-Fi Aware communication network, a Bluetooth communication network, or other near field communication network. Among them, near field communication is a wireless communication technology for establishing mutual connection between a terminal and a terminal through a P2P (person-to-person) network, and a plurality of terminals connected to a near field communication network are both senders of resources, services and contents in data transmission and receivers of the resources, services and contents. The Wi-Fi Direct communication technology is greatly improved in transmission speed and transmission distance compared with the Bluetooth communication technology, and a plurality of terminals connected with the Wi-Fi Direct communication network can quickly and easily transmit files and share application programs.
In one embodiment, the first terminal creates the near field communication network according to the near field communication network creating instruction, wherein the near field communication network creating instruction can be generated by touching the near field communication network creating item on the display interface of the first terminal by a user or triggering the near field communication creating item by voice input of the user. The first terminal may be connected into the near field communication network while the near field communication network is being created.
In one embodiment, after the first terminal creates and connects to the nfc network, nfc connection information is generated and displayed on the first terminal screen for the second terminal to recognize and parse the nfc connection information. And generating near field communication connection information according to near field communication network information such as a near field communication network address, a network connection password and the like of the near field communication network. The near field communication network address comprises an IP address of the first terminal, and the access authority of the near field communication network can be obtained through the near field communication network address and the network connection password.
The near field communication connection information can be displayed on a display screen of the first terminal in the form of communication codes such as two-dimensional code graphs, bar code graphs and character string codes. And the second terminal identifies and analyzes the near field communication connection information, obtains a near field communication network address of the near field communication network, and is connected to the near field communication network based on the near field communication network address.
In one embodiment, the first terminal may set a searched right to the created near field communication network, and the searched right may be set as public or may be set as partially public, for example, when the searched right of the near field communication network is set as public, all the second terminals within the communication range of the near field communication network can search the near field communication network; when the searched authority of the near field communication network is set to be disclosed only to the second terminal having the history communication with the first terminal, only the second terminal having the history communication can search the near field communication network within the communication range of the near field communication network. The communication range of the near field communication network is related to the sensor of the first terminal, a circle with the communication range of the near field communication network (the communication range of the Wi-Fi Direct near field communication network can be 10-20 meters) as a radius is used as a center of the first terminal, and a second terminal which accords with the searched authority in the circle can search the near field communication network created and connected by the first terminal.
The first terminal enables the first terminal to establish communication connection with the plurality of second terminals through the near field communication network, and the first terminal and the plurality of second terminals in the near field communication network can perform data transmission mutually, one terminal and another terminal can perform one-to-one data transmission, one terminal and the plurality of terminals can perform one-to-many data transmission, and the plurality of terminals can perform many-to-many data transmission.
In one embodiment, the first terminal may create a near field communication network having a number of terminals limit, which is an upper limit value of a sum of the number of terminals connected to the near field communication network, according to the create near field communication network instruction. For example, the first terminal may create a near field communication network with a limit of 5, and when one first terminal and 4 second terminals are connected to the near field communication network, the sum of the numbers of the first terminals and the second terminals connected to the near field communication network is 5, and the other second terminals cannot be connected to the near field communication network.
S202, the second terminal is connected with a near field communication network, and the first terminal is in communication connection with at least one second terminal through the near field communication network.
In an embodiment, the first terminal may present the communication code to the second terminal, and the second terminal invokes a code scanning application to scan the communication code, where the code scanning application may be an application having a code scanning function and a decoding function, such as XShare, and the XShare may be used to share the file quickly in a traffic-free and network-free environment.
In one embodiment, the second terminal reversely analyzes the scanned communication code by using a decoding function in the code scanning application program to obtain near field communication connection information such as a near field communication network address and a network connection password of the near field communication network created by the first terminal, and displays the analyzed near field communication connection information on a display screen for connecting the near field communication network.
In an embodiment, after the second terminal obtains the access right of the nfc network based on the nfc network address and the network connection password, the second terminal may automatically connect to the nfc network. The analyzed near field communication connection information can also be displayed in a display screen, prompt information about whether to connect the near field communication network and the near field communication network is generated, and the second terminal is connected with the near field communication network after acquiring an instruction sent by a user to connect the near field communication network and the near field communication network.
S203, the first terminal selects at least one data message to be transmitted to at least one second terminal through the near field communication network.
In one embodiment, the first terminal and the plurality of second terminals respectively perform data transmission through a first Socket file and a second Socket file. The Socket file comprises a receiving Socket file and a sending Socket file, the receiving Socket file is used for monitoring data and then identifying the data and storing the data to a local receiving terminal, the sending Socket file is used for sending the data to the receiving terminal, and the receiving Socket file and the sending Socket file are used for effectively improving the data transmission speed when the terminals perform data transmission mutually.
In an embodiment, when a first terminal connects to a near field communication network, a first Socket (Socket) file for data transmission is created, where the first Socket file carries an IP address and a port number of the first terminal, and the first Socket file includes a first receiving Socket file and a first sending Socket file. And the plurality of second terminals respectively create second Socket files for data transmission, the second Socket files carry the IP addresses and the port numbers of the second terminals, and the second Socket files comprise second receiving Socket files and second sending Socket files.
In one embodiment, after the second terminal is connected to the near field communication network, the terminal information is broadcasted to all terminals connected to the near field communication network through the near field communication network, and the terminal information includes a terminal identifier, an IP address, a port number, and the like, so that all terminals connected to the near field communication network can perform data transmission with the terminal information according to the terminal information.
In one implementation mode, a first terminal selects one or more files and applications and packages the files and the applications into a data packet, the first terminal selects terminal identifications of a plurality of second terminals needing data transmission, and the plurality of second terminals corresponding to the terminal identifications are determined as receiving terminal terminals. And sending a data packet to the terminal of the receiving party by utilizing the first sending Socket file based on the terminal information such as the terminal identification, the IP address, the port number and the like of the terminal of the receiving party. After the receiving party terminal monitors the data packet by using the second receiving Socket file, the file and the application program name corresponding to the data packet are respectively displayed in the display screen, and prompt information for judging whether to receive the data packet is generated. And after receiving a determined receiving instruction of the user, the receiving party terminal respectively stores the files and the application programs in the data packet by using the second receiving Socket file, and respectively displays the storage progress, the storage speed, the sending party terminal identification and the receiving party terminal identification in a display screen.
In one embodiment, the second terminal determines the first terminal or other plurality of second terminals selected by the user in the near field communication network as the receiving terminal. And sending a data packet to the receiving terminal by using the second sending Socket file, and respectively displaying a file and an application program name corresponding to the data packet in a display screen after the receiving Socket file of the receiving terminal monitors the data packet, and respectively generating prompt information for judging whether to receive the data packet. And after receiving a determined receiving instruction of the user, the receiving party terminal respectively stores the files and the application programs in the data packet by using the second receiving Socket file, and respectively displays the storage progress, the storage speed, the sending party terminal identification and the receiving party terminal identification in a display screen.
The following describes, by way of a complete example, a method for near-field transmission of data provided in the present application with reference to fig. 3(a) and 3 (b):
the first terminal A (the first terminal is identified as Adelaide) creates and connects the Wi-Fi Direct near field communication network, and creates a first Socket file for data transmission. The first terminal processes near field communication connection information such as a near field communication network address of a Wi-Fi Direct near field communication network and a network connection password zVyFyI5S to generate a communication code of a two-dimensional code graph.
The first terminal a presents the communication code to a plurality of second terminals. The second terminal B, the second terminal C, the second terminal D, the second terminal E, and the second terminal F respectively call the application XShare to scan and analyze the communication code, and obtain the near field communication connection information such as the near field communication network address of the near field communication network and the network connection password zVyFyI 5S. The second terminals B, C, D, E and F establish a second sending Socket file and a second receiving Socket file for data transmission, and each second terminal is connected with the near field communication network based on the near field communication connection information, wherein the first terminal A is a near field communication network administrator (Group Owner).
After the second terminal B, the second terminal C, the second terminal D, the second terminal E, and the second terminal F are connected to the near field communication network, as shown in fig. 3(a), the terminal identifiers of the terminals are respectively displayed on the display screen, the terminal identifier of the first terminal a is Adelaide, and the terminal identifiers of the second terminal B-the second terminal F are itel 6002P, EAIL, AILY, infiix-X655F, and Lucy, respectively.
The first terminal a selects one or more files and applications and packages them into a data package.
As shown in fig. 3(b), the first terminal a selects a plurality of second terminals for data transmission as the second terminal C and the second terminal D, and sends the data packets to the second terminal C and the second terminal D by using the first sending Socket file. And the second terminal C and the second terminal D respectively call a second receiving Socket file to respectively identify and store the file types of the files and the application programs in the data packet, and respectively display the storage progress, the storage speed, the sender terminal identification and the receiver terminal identification in a display screen.
According to the data near field transmission method, the first terminal is connected with a near field communication network, and the near field communication network comprises near field communication connection information; the second terminal is connected with the near field communication network, and the first terminal is in communication connection with at least one second terminal through the near field communication network; the first terminal selects at least one data message to be transmitted to at least one second terminal through the near field communication network. Therefore, the data can be shared to a plurality of users simultaneously under the condition without a network through the embodiment of the application.
Referring to fig. 4, fig. 4 is a flowchart of another near field data transmission method according to an embodiment of the present disclosure. The near field transmission method of the data can be interactively implemented by the first terminal 101 and the first terminal 102 shown in fig. 1; as shown in fig. 4, the near field transmission method of data includes, but is not limited to, the following steps 401 to 409:
s401, the first terminal obtains a historical second terminal identification in the historical near field communication network.
In one embodiment, the historical near field communication network comprises a historical second terminal with a communication record and a historical second terminal without a communication record, and the historical near field communication network is a near field communication network to which the first terminal is connected and the historical second terminal is also connected. The historical second terminal with the communication record performs data transmission with the first terminal or other historical second terminals in the historical near field communication network. The first terminal can search historical second terminal identifications corresponding to all historical second terminals connected with the historical near field communication network according to the user operation instruction, and the first terminal can also only search historical second terminal identifications corresponding to the historical second terminals with communication records through the historical near field communication network.
S402, the first terminal searches whether a second terminal with historical communication corresponding to the historical second terminal identification exists in the communication range of the near field communication network.
In an embodiment, after the second terminal opens the searched permission, a circle with the first terminal as a center and the communication range of the near field communication network created by the first terminal as a radius is used, and the second terminal identifier of the second terminal in the circle can be found by the first terminal. And the first terminal matches the searched second terminal identification with the historical second terminal identification one by one, and if the matching is successful, the searched second terminal identification is the historical second terminal identification, namely the second terminal corresponding to the searched second terminal identification is the historical communication second terminal.
And S403, if the connection invitation information exists, the first terminal sends the connection invitation information to the second terminal of the historical communication, and the connection invitation information is used for the second terminal of the historical communication to be connected with the near field communication network.
Therefore, according to the embodiment of the application, the historical second terminal identification of the historical communication is obtained through the first terminal; the first terminal searches whether a second terminal with historical communication corresponding to a historical second terminal identification exists in a communication range of the near field communication network; and if so, the first terminal sends connection invitation information to the second terminal of the historical communication, and the connection invitation information is used for connecting the second terminal of the historical communication with the near field communication network. The first terminal actively invites the second terminal to be connected with the near field communication network for data transmission.
Referring to fig. 5, fig. 5 is a flowchart of another near field data transmission method according to an embodiment of the present disclosure. The near field transmission method of the data can be interactively implemented by the first terminal 101 and the first terminal 102 shown in fig. 1; as shown in fig. 5, the near-field transmission method of data includes, but is not limited to, the following steps 501 to 502:
s501, the first terminal receives a near field communication network connection request sent by the second terminal, and the near field communication network connection request is used for the second terminal to connect the near field communication network.
In one embodiment, the second terminal searches whether a near field communication network exists in a communication range of the second terminal, if so, acquires a near field communication network address of the searched near field communication network, matches the near field communication network address with near field communication network addresses of historical near field communication networks one by one, if matching is successful, the near field communication network is the historical near field communication network, and if not, the near field communication network is not the historical near field communication network. The historical nfc network stored in the second terminal is an nfc network connected in a certain historical time, for example, an nfc network connected in the last month.
In one embodiment, when the searched near field communication network is a historical near field communication network, the second terminal connects to the corresponding near field communication network based on the near field communication network address. And if the near field communication network is not the historical near field communication network, the second terminal sends a near field communication network connection request to the first terminal which creates the searched near field communication network, and the near field communication network connection request carries a second terminal identifier.
And S502, the first terminal responds to the request for connecting the near field communication network and allows the second terminal to be connected with the near field communication network.
In one implementation mode, according to a connection permission instruction of a user, the first terminal responds to a near field communication network connection request, displays a communication code to the second terminal, and enables the second terminal to be connected with the near field communication network after scanning and identifying the communication code. And if the first terminal receives a connection rejection instruction of the user, the first terminal sends prompt information for prompting the failure of connecting the near field communication network to the second terminal.
Therefore, according to the embodiment of the application, the second terminal can send a request for connecting the near field communication network to the first terminal for actively establishing the communication connection with the first terminal for data transmission by searching the near field communication network in the communication range.
Referring to fig. 6, fig. 6 is a flowchart illustrating another method for near field data transmission according to an embodiment of the present disclosure. The near field transmission method of the data can be interactively implemented by the first terminal 101 and the first terminal 102 shown in fig. 1; as shown in fig. 6, the method for near-field transmission of data includes, but is not limited to, the following steps 601 to 603:
s601, the first terminal acquires the communication record of the second terminal, wherein the communication record comprises the communication times and the communication content of the second terminal, the first terminal and other second terminals through the near field communication network.
The communication content is file content, picture content, video content, audio content, application program and the like which are transmitted by the second terminal in the current near field communication network with the first terminal and other second terminals.
S602, the first terminal judges whether the communication frequency of the second terminal meets the preset communication frequency and whether the communication content comprises unhealthy information, wherein the unhealthy information comprises illegal violation information and information reported by the first terminal and other second terminals.
In one embodiment, the preset number of communications is a standard for determining whether the second terminal is active, and if the number of communications between the second terminal and the first terminal and the other second terminals is less than the preset number of communications within the preset communications time, it is determined that the second terminal is inactive; and if the communication times of the second terminal are greater than the preset communication times, the second terminal is active. For example, if the preset communication time is within ten minutes of the second terminal connecting to the near field communication network, the preset number of times of communication is 1, and the number of times of communication of the second terminal is 0, it is determined that the second terminal is inactive.
In one embodiment, when the first terminal or other second terminals receive the bad information, the first terminal marks and reports the bad information, so that the first terminal finds the second terminal sending the bad information according to the marked and reported information.
And S603, if so, the first terminal interrupts the connection between the second terminal and the near field communication network.
Therefore, according to the embodiment of the application, the first terminal obtains the communication record of the second terminal in the near field communication network, the communication record comprises the communication times and the communication contents of the second terminal with the first terminal and other second terminals through the near field communication network, whether the communication times of the second terminal meet the preset communication times and whether the communication contents comprise bad information or not is judged, if yes, the first terminal interrupts the connection between the second terminal and the near field communication network, and the management of the first terminal on the near field communication network is enhanced.
While the method of the embodiments of the present application has been described in detail above, to facilitate better implementation of the above-described aspects of the embodiments of the present application, the apparatus of the embodiments of the present application is provided below accordingly.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a near field data transmission apparatus according to an embodiment of the present disclosure, and the near field data transmission apparatus shown in fig. 7 may be used to perform part or all of the functions in the method embodiments described in fig. 2 to fig. 6. The detailed description of each unit is as follows:
a connection unit 701, configured to connect a first terminal to a near field communication network, where the near field communication network includes near field communication connection information;
the connection unit 701 is further configured to connect the second terminal to a near field communication network, and the first terminal establishes a communication connection with at least one second terminal through the near field communication network;
a communication unit 702, configured to enable a first terminal to select at least one data message to be transmitted to at least one second terminal through a near field communication network;
according to an embodiment of the present application, some steps involved in the near field transmission method of data shown in fig. 2 may be performed by each unit in the near field transmission device of data shown in fig. 7. For example, step 201 shown in fig. 2 may be performed by the connection unit 701 shown in fig. 7, step 202 may be performed by the connection unit 701 shown in fig. 7, and step 203 may be performed by the communication unit 702 shown in fig. 7.
In another embodiment, referring to fig. 8, the near field transmission apparatus of data shown in fig. 7 further includes:
a searching unit 703, configured to enable the first terminal to obtain a historical second terminal identifier of historical communication; the first terminal searches whether a second terminal with historical communication corresponding to a historical second terminal identification exists in a communication range of the near field communication network; and if so, the first terminal sends connection invitation information to the second terminal of the historical communication, and the connection invitation information is used for connecting the second terminal of the historical communication with the near field communication network.
In one embodiment, referring to fig. 8, the near field transmission apparatus for data shown in fig. 7 further includes:
a response unit 704, configured to receive, by the first terminal, a near field communication network connection request sent by the second terminal, where the near field communication network connection request is used for the second terminal to connect to the near field communication network; the first terminal responds to the request for connecting the near field communication network and allows the second terminal to be connected with the near field communication network.
In one embodiment, referring to fig. 8, the near field transmission apparatus for data shown in fig. 7 further includes:
the management unit 705 is used for the first terminal to obtain a communication record of the second terminal, wherein the communication record comprises the communication times and the communication contents of the second terminal with the first terminal and other second terminals through a near field communication network; the first terminal judges whether the communication frequency of the second terminal meets the preset communication frequency and whether the communication content comprises unhealthy information, wherein the unhealthy information comprises illegal violation information and information reported by the first terminal and other second terminals; and if so, the first terminal interrupts the connection between the second terminal and the near field communication network.
According to an embodiment of the present application, the units in the near field transmission apparatus for data shown in fig. 2 to fig. 6 may be respectively or entirely combined into one or several other units to form one or several other units, or some unit(s) thereof may be further split into multiple units with smaller functions to form the same operation, without affecting the achievement of the technical effect of the embodiment of the present application. The units are divided based on logic functions, and in practical application, the functions of one unit can be realized by a plurality of units, or the functions of a plurality of units can be realized by one unit. In other embodiments of the present application, the near field transmission device of data may also include other units, and in practical applications, these functions may also be implemented by assistance of other units, and may be implemented by cooperation of multiple units.
Based on the above description of the method embodiment and the apparatus embodiment, the embodiment of the present application further provides a near field transmission apparatus 9 for data. Referring to fig. 9, the near field transmission apparatus for data at least includes a communication interface 901, a processing unit 902 and a memory 903. The communication interface 901, the processing unit 902, and the memory 903 may be connected by a bus 904 or other means.
In embodiments of the present application, the communication interface may be a transceiver, circuit, bus, module, or other type of communication interface for communicating with other devices over a transmission medium. For example, the communication interface 901 is used for the apparatus in the apparatus 9 to communicate with other devices. The processor 902 transceives data using the communication interface 901 and is configured to implement the methods of the above-described method embodiments.
The apparatus 9 may also include at least one memory 903 for storing program instructions and/or data. The memory 903 is coupled to the processor 902. The coupling in the embodiments of the present application is an indirect coupling or a communication connection between devices, units or modules, and may be an electrical, mechanical or other form for information interaction between the devices, units or modules. The processor 902 may cooperate with the memory 903. The processor 902 may execute program instructions stored in the memory 903. At least one of the at least one memory may be included in the processor.
The embodiment of the present application does not limit the specific connection medium among the communication interface 901, the processor 902, and the memory 903. In the embodiment of the present application, the memory 903, the communication interface 902, and the communication interface 901 are connected by the bus 904 in fig. 9, the bus is represented by a thick line in fig. 9, and the connection manner between other components is merely schematically illustrated and is not limited thereto. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 9, but this does not indicate only one bus or one type of bus.
When the apparatus 9 is specifically an apparatus for a first terminal or a second terminal, for example, when the apparatus 9 is specifically a chip or a chip system, the output or the reception of the communication interface 901 may be a baseband signal. When the apparatus 9 is specifically a first terminal or a second terminal, the output or the reception of the communication interface 901 may be a radio frequency signal. In the embodiments of the present application, the processor may be a general-purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor.
According to another embodiment of the present application, a near field transmission apparatus of data as shown in fig. 7 to 9 may be constructed by running a computer program (including program codes) capable of executing steps involved in the respective methods as shown in fig. 2 to 6 on a general-purpose computing apparatus such as a computer including a processing element such as a Central Processing Unit (CPU), a random access storage medium (RAM), a read only storage medium (ROM), and a storage element, and a near field transmission method of data of an embodiment of the present application may be implemented. The computer program may be recorded on a computer-readable recording medium, for example, and loaded and executed in the above-described computing apparatus via the computer-readable recording medium.
Based on the same inventive concept, the principle and the advantageous effect of the near field transmission apparatus for data provided in the embodiment of the present application for solving the problem are similar to those of the near field transmission apparatus for data in the embodiment of the present application for solving the problem, and for brevity, the principle and the advantageous effect of the implementation of the method may be referred to, and are not described herein again.
The embodiment of the present application further provides a computer-readable storage medium, in which one or more instructions are stored, and the one or more instructions are adapted to be loaded by a processor and execute the near field transmission method of data of the above method embodiment.
Embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the near field transmission method of data of the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned embodiments of the method are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The modules in the device can be merged, divided and deleted according to actual needs.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, which may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method of near field transmission of data, the method comprising:
the first terminal is connected with a near field communication network, and the near field communication network comprises near field communication connection information;
the second terminal is connected with the near field communication network, and the first terminal is in communication connection with at least one second terminal through the near field communication network;
and the first terminal selects at least one data message to be transmitted to at least one second terminal through the near field communication network.
2. The method of claim 1, wherein the selecting, by the first terminal, at least one data message for transmission to at least one of the second terminals via the near field communication network comprises:
the first terminal selects a plurality of data messages;
the first terminal selects a plurality of second terminals to establish communication connection;
and the first terminal simultaneously transmits the data information to the second terminals establishing communication connection.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
when the first terminal is connected with the second terminal in a communication connection mode, the first terminal, the second terminal with the established communication connection mode and the second terminal without the established communication connection mode are still in the near field communication network.
4. The method of claim 1, further comprising:
the second terminal may communicate information with the first terminal and other second terminals via the near field communication network.
5. Method according to claim 1, characterized in that the near field communication connection information comprises a communication code for the second terminal to connect to the near field communication network, and/or a near field communication network address, and/or near field communication network information.
6. The method of claim 1, further comprising:
the first terminal acquires a historical second terminal identifier of historical communication;
the first terminal searches whether a second terminal with historical communication corresponding to the historical second terminal identification exists in the communication range of the near field communication network;
and if so, the first terminal sends connection invitation information to the second terminal of the historical communication, wherein the connection invitation information is used for the second terminal of the historical communication to be connected with the near field communication network.
7. The method of claim 1, wherein before the second terminal connects to the near field communication network, the method further comprises:
the first terminal receives a near field communication network connection request sent by a second terminal, wherein the near field communication network connection request is used for the second terminal to connect the near field communication network;
and the first terminal responds to the request for connecting the near field communication network and allows the second terminal to be connected with the near field communication network.
8. The method of claim 1, further comprising:
the first terminal acquires a communication record of the second terminal, wherein the communication record comprises the communication times and communication contents of the second terminal with the first terminal and other second terminals through the near field communication network;
the first terminal judges whether the communication frequency of the second terminal meets a preset communication frequency or not and whether the communication content comprises unhealthy information or not, wherein the unhealthy information comprises illegal violation information and information reported by the first terminal and other second terminals;
and if so, the first terminal interrupts the connection between the second terminal and the near field communication network.
9. An apparatus for near field transmission of data, comprising a processor, a memory and a communication interface, the processor, the memory and the communication interface being interconnected, wherein the memory is configured to store a computer program, the computer program comprising program instructions, the processor being configured to invoke the program instructions to perform a method for near field transmission of data according to any of claims 1 to 8.
10. A computer-readable storage medium having stored thereon one or more instructions adapted to be loaded by a processor and to perform a method of near field transmission of data according to any of claims 1 to 8.
CN202010337244.4A 2020-04-24 2020-04-24 Near-field data transmission method and device and computer readable storage medium Pending CN111542033A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010337244.4A CN111542033A (en) 2020-04-24 2020-04-24 Near-field data transmission method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010337244.4A CN111542033A (en) 2020-04-24 2020-04-24 Near-field data transmission method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111542033A true CN111542033A (en) 2020-08-14

Family

ID=71975859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010337244.4A Pending CN111542033A (en) 2020-04-24 2020-04-24 Near-field data transmission method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111542033A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113840235A (en) * 2021-08-04 2021-12-24 杭州羿腾科技有限公司 Method, system and terminal for precise information interaction in near field range
WO2022228028A1 (en) * 2021-04-30 2022-11-03 华为技术有限公司 File sharing method and electronic device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022228028A1 (en) * 2021-04-30 2022-11-03 华为技术有限公司 File sharing method and electronic device
CN113840235A (en) * 2021-08-04 2021-12-24 杭州羿腾科技有限公司 Method, system and terminal for precise information interaction in near field range
CN113840235B (en) * 2021-08-04 2024-05-07 杭州羿腾科技有限公司 Accurate information interaction method, system and terminal in near field range

Similar Documents

Publication Publication Date Title
US11310239B2 (en) Network connection method, hotspot terminal and management terminal
JP5897137B2 (en) Wireless local area network authentication method and mobile terminal
US11172520B2 (en) Connection method and device
CN109996260B (en) Configuration system, client device, embedded device configuration method and storage medium
US8942213B2 (en) Method and system for accessing storage devices
US20120014321A1 (en) Messaging activity feed
CN106028266B (en) Information transmission method, device and system
CN104346560A (en) Security authentication method and security authentication device
CN110113250B (en) Method for sharing wireless access point through instant messaging software
CN112346751B (en) Application program installation method and device, electronic equipment and storage medium
CN111542033A (en) Near-field data transmission method and device and computer readable storage medium
CN112261651B (en) Terminal control method, device, terminal and storage medium
CN112333062A (en) Control method and control device for household equipment and computer readable storage medium
KR20110005684A (en) Terminal and method for selecting secure device
CN114025349A (en) Network service method, device, system and storage medium
CN114080004B (en) Private network access method and device
CN104580070A (en) Method, device and system for confirming network conversations
CN114828000B (en) Login method, login device and computer readable storage medium
CN115835336B (en) Set top box networking method, device, equipment and readable storage medium
CN103369518A (en) Communication method and communication terminal
CN107613497A (en) Method for network authorization and radio reception device
CN114553952B (en) Device management method and device, electronic device and storage medium
CN112866995B (en) Connection method, device, electronic equipment and storage medium
CN110351808B (en) File transmission processing method and device
US20230048931A1 (en) Split input and output remote access

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