WO2017113976A1 - Wireless local area network communication method, terminal, and system - Google Patents

Wireless local area network communication method, terminal, and system Download PDF

Info

Publication number
WO2017113976A1
WO2017113976A1 PCT/CN2016/104023 CN2016104023W WO2017113976A1 WO 2017113976 A1 WO2017113976 A1 WO 2017113976A1 CN 2016104023 W CN2016104023 W CN 2016104023W WO 2017113976 A1 WO2017113976 A1 WO 2017113976A1
Authority
WO
WIPO (PCT)
Prior art keywords
access terminal
target
address
access
mapping table
Prior art date
Application number
PCT/CN2016/104023
Other languages
French (fr)
Chinese (zh)
Inventor
王少锋
Original Assignee
宇龙计算机通信科技(深圳)有限公司
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 宇龙计算机通信科技(深圳)有限公司 filed Critical 宇龙计算机通信科技(深圳)有限公司
Publication of WO2017113976A1 publication Critical patent/WO2017113976A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • 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

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a wireless local area network communication method, terminal, and system.
  • the internal communication method of the enterprise or the unit is mainly through the internal landline telephone, and the internal landline machine can make a free call to the enterprise or the colleagues inside the unit.
  • This method seems to be very low cost, but since the internal landline is realized through the internal switch Therefore, enterprises need to purchase switches and perform maintenance, which also increases the communication cost to a certain extent; more importantly, the landline has problems such as occupying space, inconvenient installation, and being unable to move and make calls, which affects the convenience of communication, for example, if someone has something to leave, so they can't get a landline call, which reduces communication efficiency.
  • the technical problem to be solved by the embodiments of the present invention is to provide a wireless local area network communication method, terminal, and system, which can enable communication between all mobile terminals accessing the same wireless local area network access point, thereby improving the convenience of internal communication. And communication efficiency.
  • the embodiment of the invention provides a wireless local area network communication method, and the method includes:
  • IP mapping table includes the access terminal identifier and an IP address corresponding to the access terminal identifier
  • IP mapping table Transmitting the IP mapping table to an access terminal that accesses the WLAN access point, so that when the access terminal receives a communication instruction input by the user for the target access terminal identifier, according to the IP mapping
  • the table obtains a target IP address corresponding to the target access terminal identifier, and establishes a communication connection with the target access terminal corresponding to the target IP address.
  • the method further includes:
  • the method further includes:
  • the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table is updated to the received access terminal identifier in the received access information
  • the embodiment of the invention further provides a wireless local area network communication method, the method comprising:
  • IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier
  • the establishing, according to the target IP address, establishing a connection with the target access terminal corresponding to the target IP address includes:
  • the target access terminal corresponding to the target IP address When receiving the acknowledgement character sent by the target access terminal, the target access terminal corresponding to the target IP address establishes a communication connection.
  • the method further includes:
  • the access information includes an IP address of the local end and an access terminal identifier, so that the network terminal detects the IP address of the access terminal in the IP mapping table.
  • the access terminal identifier is inconsistent with the access terminal identifier in the access information, the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table is updated to the access information.
  • an embodiment of the present invention provides a network terminal, where the terminal includes:
  • An obtaining module configured to obtain an access terminal identifier that accesses the wireless local area network access point
  • a table building module configured to allocate an IP address to the access terminal identifier, and establish an IP mapping table, where the IP mapping table includes the access terminal identifier and an IP address corresponding to the access terminal identifier;
  • a first sending module configured to send the IP mapping table to an access terminal that accesses the wireless local area network access point, so that the access terminal receives a communication instruction that is input by the user for the target access terminal identifier And acquiring, by the IP mapping table, a target IP address corresponding to the target access terminal identifier, and establishing a communication connection with the target access terminal corresponding to the target IP address.
  • the terminal further includes:
  • the first update module is configured to update the IP mapping table when detecting that the newly added access terminal accesses the wireless local area network access point;
  • the second sending module is configured to send the updated IP mapping table to the access terminal of the wireless local area network access point.
  • the terminal further includes:
  • a receiving module configured to receive access information sent by the access terminal, where the access information includes an IP address of the access terminal and an access terminal identifier;
  • a detecting module configured to detect whether an access terminal identifier corresponding to an IP address of the access terminal in the IP mapping table is consistent with an received access terminal identifier in the received access information
  • a second update module configured to: when the access terminal identifier is inconsistent, update the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table to the received access information Enter the terminal identifier;
  • the third sending module is configured to send the updated IP mapping table to the access terminal of the WLAN access point.
  • the embodiment of the present invention further provides an access terminal, where the terminal includes:
  • a receiving module configured to receive an IP mapping table sent by the network terminal, where the IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier;
  • An instruction module configured to receive a communication instruction input by the user for the target access terminal identifier
  • a locating module configured to search for a target IP address corresponding to the target access terminal identifier according to the IP mapping table
  • a communication module configured to establish a communication connection with the target access terminal corresponding to the target IP address according to the target IP address.
  • the communication module includes:
  • a requesting unit configured to send a connection request to the target access terminal corresponding to the target IP address according to the target IP address
  • the communication unit is configured to establish a communication connection with the target access terminal corresponding to the target IP address when receiving the acknowledgement character sent by the target access terminal.
  • the terminal further includes:
  • a sending module configured to send the access information to the network terminal, where the access information includes an IP address of the local end and an access terminal identifier, so that the network terminal detects the connection in the IP mapping table
  • the access terminal identifier corresponding to the IP address of the inbound terminal is inconsistent with the access terminal identifier in the access information, update the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table to An access terminal identifier in the access information
  • an update receiving module configured to receive the updated IP mapping table sent by the network terminal.
  • the present invention also provides a wireless local area network communication system, the system comprising a network terminal and an access terminal, wherein:
  • a network terminal configured to obtain an access terminal identifier that accesses the WLAN access point, allocate an IP address to the access terminal identifier, and establish an IP mapping table, where the IP mapping table includes the access terminal identifier and The access terminal identifies a corresponding IP address, and sends the IP mapping table to an access terminal that accesses the wireless local area network access point, so that the access terminal receives the user input for the target access terminal. And obtaining, by the IP mapping table, a target IP address corresponding to the target access terminal identifier, and establishing a communication connection with the target access terminal corresponding to the target IP address;
  • the access terminal is configured to receive an IP mapping table sent by the network terminal, where the IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier, and receives a communication instruction input by the user for the target access terminal identifier;
  • the IP mapping table is configured to search for a target IP address corresponding to the target access terminal identifier, and establish a communication connection with the target access terminal corresponding to the target IP address according to the target IP address.
  • the embodiment of the present invention obtains an IP address by assigning an IP address to the access terminal identifier by acquiring an access terminal identifier of the access point of the wireless local area network, where the IP mapping table includes the access terminal identifier and the And the access terminal identifier is sent to the access terminal that accesses the wireless local area network access point, so that the access terminal receives the identifier input by the user for the target access terminal identifier.
  • FIG. 1 is a schematic flow chart of a wireless local area network communication method according to an embodiment of the present invention
  • FIG. 2 is a schematic flow chart of a wireless local area network communication method according to another embodiment of the present invention.
  • FIG. 3 is a schematic diagram of an interaction process of a wireless local area network communication method according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a network terminal according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a structure of an access terminal according to an embodiment of the present invention.
  • FIG. 6 is a structural diagram of a communication module of FIG. 5 according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a wireless local area network communication system according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of another network terminal according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of another access terminal in an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a wireless local area network communication method according to an embodiment of the present invention.
  • the method may be implemented by a network terminal, where the network terminal may be a terminal having a wireless local area network hotspot establishing function or a software program running on the terminal.
  • the terminal may include a wireless router, a mobile phone, a notebook computer, a car computer, and the like.
  • the method as shown in the figure includes at least:
  • Step S101 Acquire an access terminal identifier that accesses the wireless local area network access point.
  • the access terminal identifier is an identifier that identifies the access terminal, and may be a name, a number, an identity code, and the like of the access terminal, such as an IMEI (International Mobile Equipment Identity), a phone number, and a self.
  • the terminal name and the like are defined, and are not specifically limited herein.
  • the access terminal identifier of each access terminal is unique in the wireless local area network.
  • the access terminal may be a mobile terminal having a wireless access function and a communication function, such as a mobile phone.
  • the network terminal can obtain the access terminal identifier of all accessing the wireless local area network due to the connection relationship between the access terminal and the wireless local area network access point. For example, if the access terminal is identified as the internal number of the access terminal, the internal number of the first access terminal is 6001, and the internal number of the second access terminal is 6002, the network terminal can obtain the first access terminal.
  • Step S102 Assign an IP address to the access terminal identifier, and establish an IP mapping table, where the IP mapping table includes the access terminal identifier and an IP address corresponding to the access terminal identifier.
  • the IP mapping table is a mapping table that reflects the correspondence between the access terminal identifier and the IP address.
  • the network terminal may assign an IP address to each access terminal identifier, that is, assign an IP address to each access terminal.
  • the address according to the correspondence between the access terminal identifier and the assigned IP address, the network terminal may establish an IP mapping table, where the IP mapping table includes the access terminal identifiers obtained by the network terminal and the corresponding access terminal identifiers. IP address. That is to say, the mapping relationship between the access terminal identifier and its corresponding IP address is established through the IP mapping table, and the corresponding access terminal identifier can be found through the IP address, and the corresponding IP address can also be found through the access terminal identifier. .
  • the terminal may assign a corresponding IP address 183.33.33.1 to the 6001, and assign a corresponding IP address 183.33.33.2 to the 6002, so that the terminal can be established.
  • An IP mapping table containing 6001 and 6002 and their corresponding IP addresses.
  • Step S103 Send the IP mapping table to an access terminal that accesses the wireless local area network access point, so that the access terminal receives a communication instruction input by the user for the target access terminal identifier, according to the The IP mapping table obtains a target IP address corresponding to the target access terminal identifier, and establishes a communication connection with the target access terminal corresponding to the target IP address.
  • the IP mapping table may be sent to all access terminals that access the wireless local area network access point.
  • the access terminal may query the target IP address corresponding to the target access terminal identifier in the received IP mapping table, and reach the target access terminal by using the target IP address.
  • a connection request is sent, and after the target access terminal accepts the request, a communication connection is established with the target access terminal.
  • the target access terminal identifier may be any access terminal identifier that accesses the wireless local area network access point, that is, the access terminals of the wireless local area network access point may communicate with each other.
  • the communication command for the target access terminal identifier may be a double click, a long press, or a press of a button for the target access terminal identifier, and is not specifically limited herein.
  • the access terminal receives the communication command for 6001, and the access terminal can query the 6001 corresponding to the IP mapping table.
  • the IP address is 183.33.33.1
  • the access terminal can send a Socket connection request based on the 183.33.33.1 IP address.
  • the target access terminal can return an ACK confirmation character, and the access terminal can receive the confirmation character.
  • the target access terminal corresponding to the IP address establishes a communication connection, that is, performs a call.
  • the method may further include:
  • the IP mapping table is updated.
  • the network terminal when the network terminal detects that a new access terminal accesses the WLAN access point, the network terminal can obtain the access terminal identifier of the newly added access terminal, and assign an IP address to the access terminal identifier of the newly added access terminal.
  • the access terminal in the WLAN is added, and the network terminal adds the access terminal identifier and the corresponding IP address of the newly added access terminal to the original IP mapping table to form an updated IP mapping table.
  • the access terminal identifier of the newly added access terminal is 6003, and the network terminal assigns a corresponding IP address 183.33 to the newly added 6003. 33.3.
  • the new IP mapping table is sent to the access terminal of the WLAN access point, so that the access terminal can communicate with the newly added access terminal.
  • the method may further include:
  • the access terminal Receiving access information sent by the access terminal, where the access information includes an IP address of the access terminal and an access terminal identifier.
  • the access information may be sent by the access terminal to the network terminal after the network terminal periodically or when receiving the user request, and the access terminal sends the access request to the access terminal; or the access terminal may be received or received.
  • the access terminal automatically detects that the user has modified the content in the access information and then sends the access information to the network terminal, which is not specifically limited.
  • the network terminal may look up the access terminal identifier corresponding to the IP address of the access terminal in the access information in the IP mapping table, and compare the corresponding in the IP mapping table. The access terminal identifier and the access terminal identifier in the access information determine whether the two are consistent.
  • the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table is updated to the received access terminal identifier in the received access information.
  • the network terminal detects that the corresponding access terminal identifier in the IP mapping table is inconsistent with the access terminal identifier in the access information, the corresponding access terminal identifier in the IP mapping table is replaced with the access information. Enter the terminal ID.
  • the access terminal identity of the original “6001” to "6004" in the access terminal is "6004-183.33.33.1", and the network terminal receives the access.
  • the access terminal identifier corresponding to 183.33.33.1 is 6001 through the IP mapping table, and the access terminal identifier 6001 and the access information of the access terminal with the IP address 183.33.33.1 in the IP mapping table can be determined. If the incoming terminal identifier 6004 is inconsistent, the access terminal identifier corresponding to 183.33.33.1 in the IP mapping table is replaced from 6001 to 6004.
  • the new IP mapping table is sent to the access terminal of the WLAN access point, so that the access terminal can communicate with the access terminal that changes the identity of the access terminal.
  • the embodiment of the present invention obtains an IP address by assigning an IP address to the access terminal identifier by acquiring an access terminal identifier of the access point of the wireless local area network, where the IP mapping table includes the access terminal identifier and the And the access terminal identifier is sent to the access terminal that accesses the wireless local area network access point, so that the access terminal receives the identifier input by the user for the target access terminal identifier.
  • the optional embodiment of the present invention further increases the bidirectional update of the IP mapping table between the network terminal and the access terminal, and improves the accuracy of the communication.
  • FIG. 2 is a schematic flowchart of a wireless local area network communication method according to another embodiment of the present invention, where the method includes:
  • Step S201 Receive an IP mapping table sent by the network terminal, where the IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier.
  • the IP mapping table is a mapping table that reflects the correspondence between the access terminal identifier and the IP address, and includes all access terminal identifiers and corresponding IP addresses that access the wireless local area network access point.
  • the access terminal may obtain the IP address assigned by the network terminal to the access terminal itself, and may also acquire other other accessing the same wireless local area network access point with the access terminal.
  • the IP address corresponding to the access terminal identifier may include “6001-183.33.33.1” and “6002-183.33.33.2”, respectively representing the first access terminal identifier and the corresponding IP address and the second access terminal and the corresponding IP address.
  • Step S202 receiving a communication instruction input by the user for the target access terminal identifier.
  • the target access terminal identifier may be any access terminal identifier that accesses the wireless local area network access point, and the communication instruction may be a double click, long press, and press of a button light operation performed by the user for the target access terminal identifier. This is not specifically limited. For example, if the user inputs the target terminal identifier of 6001 in the access terminal and presses the dial key, the access terminal receives the communication command for the target access terminal identifier 6001.
  • Step S203 searching for a target IP address corresponding to the target access terminal identifier according to the IP mapping table.
  • the access terminal can find the target IP address corresponding to the target terminal identifier through the IP mapping table.
  • the target access terminal identifier entered by the user is 6001.
  • the access terminal can query the IP address corresponding to 6001 in the IP mapping table to be 183.33.33.1.
  • Step S204 establishing a communication connection with the target access terminal corresponding to the target IP address according to the target IP address.
  • the access terminal may send a connection request to the target IP address by using the queried target IP address, and if the target access terminal corresponding to the target IP address accepts the request, the access terminal may establish a communication connection with the target joining terminal.
  • the two accesses within the WLAN access point can communicate with each other.
  • the target access terminal may listen to the network before the access terminal sends the connection request. After listening to the connection request sent by the access terminal, different feedback may be performed according to different situations. Only when the access terminal receives the acknowledgment feedback of the target access terminal can the communication connection be established and communicated with the target access terminal.
  • the target access terminal may send an acknowledgement message to the access terminal to establish communication. If the user detects that the user has not triggered the accepting command for a long time or has refused to accept the call, the target access terminal may not feed back the connection request or feed back the reject message; if the target access terminal is currently in communication, the target The access terminal may also not feed back the connection request or feed back a busy message.
  • step S204 may include:
  • the access terminal may send an IP address-based Socket connection request to the target access terminal, where the Socket connection request may include an access terminal identifier and an IP address of the access terminal.
  • the target access terminal can obtain the source of the connection request, and then can be displayed to the user in the target access terminal. Further, if the target access terminal user also stores the user name of the access terminal identifier, the target access terminal may further display the user name corresponding to the access terminal.
  • the target access terminal corresponding to the target IP address When receiving the acknowledgement character sent by the target access terminal, the target access terminal corresponding to the target IP address establishes a communication connection.
  • the confirmation character may be an ACK confirmation character sent by the target access terminal after receiving the received communication instruction input by the user, indicating that the target access terminal has received the connection request, and agrees to the connection request.
  • the IP address-based communication connection can be established with the target access terminal corresponding to the target IP address, and the voice can be transmitted in both directions between the access terminal and the target access terminal. Or video information, the two sides can decode the received voice or video information to obtain the information content.
  • the method further includes:
  • the access information includes an IP address of the local end and an access terminal identifier, so that the network terminal detects the IP address of the access terminal in the IP mapping table.
  • the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table is updated to the access information. Access terminal identity.
  • the access information may be sent by the access terminal to the network terminal after the network terminal periodically or when receiving the user request, and the access terminal sends the access request to the access terminal; or the access terminal may be received or received.
  • the access terminal automatically detects that the user has modified the content in the access information and then sends the access information to the network terminal, which is not specifically limited.
  • the network terminal may look up the access terminal identifier corresponding to the IP address of the access terminal in the access information in the IP mapping table, and compare the IP address.
  • the corresponding access terminal identifier in the mapping table and the access terminal identifier in the access information are used to determine whether the two are consistent. If the network terminal detects that the corresponding access terminal identifier in the IP mapping table is inconsistent with the access terminal identifier in the access information, replace the corresponding access terminal identifier in the IP mapping table with the access terminal identifier in the access information. .
  • the access terminal identity of the original “6001” to "6004" in the access terminal is "6004-183.33.33.1", and the network terminal receives the access.
  • the access terminal identifier corresponding to 183.33.33.1 is 6001 through the IP mapping table, and the access terminal identifier 6001 and the access information of the access terminal with the IP address 183.33.33.1 in the IP mapping table can be determined. If the incoming terminal identifier 6004 is inconsistent, the access terminal identifier corresponding to 183.33.33.1 in the IP mapping table is replaced from 6001 to 6004.
  • the new IP mapping table is sent to the access terminal of the WLAN access point, and after the access terminal receives the updated IP mapping table, the other access terminals It is possible to communicate with an access terminal that has changed the access terminal identity.
  • the embodiment of the present invention obtains an IP address by assigning an IP address to the access terminal identifier by acquiring an access terminal identifier of the access point of the wireless local area network, where the IP mapping table includes the access terminal identifier and the And the access terminal identifier is sent to the access terminal that accesses the wireless local area network access point, so that the access terminal receives the identifier input by the user for the target access terminal identifier.
  • the optional embodiment of the present invention further increases the bidirectional update of the IP mapping table between the network terminal and the access terminal, and improves the accuracy of the communication.
  • FIG. 3 is a schematic diagram of an interaction process of a wireless local area network communication method according to an embodiment of the present invention, where the process includes:
  • Step S301 the network terminal acquires an access terminal identifier for accessing the wireless local area network access point.
  • the network terminal can obtain the access terminal identifier of all accessing the wireless local area network due to the connection relationship between the access terminal and the wireless local area network access point. For example, if the access terminal is identified as the internal number of the access terminal, the internal number of the first access terminal is 6001, and the internal number of the second access terminal is 6002, the network terminal can obtain the first access terminal.
  • Step S302 The network terminal allocates an IP address to the access terminal identifier, and establishes an IP mapping table, where the IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier.
  • the network terminal may assign an IP address to each access terminal identifier, that is, assign an IP address to each access terminal.
  • the address according to the correspondence between the access terminal identifier and the assigned IP address, the network terminal may establish an IP mapping table, where the IP mapping table includes the access terminal identifiers obtained by the network terminal and the corresponding access terminal identifiers. IP address. That is to say, the mapping relationship between the access terminal identifier and its corresponding IP address is established through the IP mapping table, and the corresponding access terminal identifier can be found through the IP address, and the corresponding IP address can also be found through the access terminal identifier. .
  • the terminal may assign a corresponding IP address 183.33.33.1 to the 6001, and assign a corresponding IP address 183.33.33.2 to the 6002, so that the terminal can be established.
  • An IP mapping table containing 6001 and 6002 and their corresponding IP addresses.
  • Step S303 the network terminal sends the IP mapping table to the access terminal accessing the wireless local area network access point.
  • the IP mapping table may be sent to all access terminals that access the wireless local area network access point.
  • the access terminal may obtain the IP address assigned by the network terminal to the access terminal itself, and may also acquire other other accessing the same wireless local area network access point with the access terminal.
  • the IP address corresponding to the access terminal identifier may include “6001-183.33.33.1” and “6002-183.33.33.2”, respectively representing the first access terminal identifier and the corresponding IP address and the second access terminal and the corresponding IP address.
  • Step S304 the access terminal receives a communication instruction input by the user for the target access terminal identifier.
  • the target access terminal identifier may be any access terminal identifier that accesses the wireless local area network access point, and the communication instruction may be a double click, long press, and press of a button light operation performed by the user for the target access terminal identifier. This is not specifically limited. For example, if the user inputs the target terminal identifier of 6001 in the access terminal and presses the dial key, the access terminal receives the communication command for the target access terminal identifier 6001.
  • Step S305 the access terminal searches for a target IP address corresponding to the target access terminal identifier according to the IP mapping table.
  • the access terminal can find the target IP address corresponding to the target terminal identifier through the IP mapping table.
  • the target access terminal identifier entered by the user is 6001.
  • the access terminal can query the IP address corresponding to 6001 in the IP mapping table to be 183.33.33.1.
  • Step S306 the access terminal sends a connection request to the target access terminal corresponding to the target IP address according to the target IP address.
  • the access terminal may send an IP address-based Socket connection request to the target access terminal, where the Socket connection request may include an access terminal identifier and an IP address of the access terminal.
  • the target access terminal can obtain the source of the connection request, and then can be displayed to the user in the target access terminal. Further, if the target access terminal user also stores the user name of the access terminal identifier, the target access terminal may further display the user name corresponding to the access terminal.
  • Step S307 the access terminal receives the confirmation character sent by the target access terminal.
  • the confirmation character may be an ACK confirmation character sent by the target access terminal after receiving the received communication instruction input by the user, indicating that the target access terminal has received the connection request, and agrees to the connection request.
  • Step S308 the access terminal establishes a communication connection with the target access terminal corresponding to the target IP address.
  • the IP access-based communication connection can be established with the target access terminal corresponding to the target IP address, and the voice can be transmitted in both directions between the access terminal and the target access terminal.
  • Video information both parties can obtain the information content by decoding the received voice or video information.
  • the embodiment of the present invention obtains an IP address by assigning an IP address to the access terminal identifier by acquiring an access terminal identifier of the access point of the wireless local area network, where the IP mapping table includes the access terminal identifier and the And the access terminal identifier is sent to the access terminal that accesses the wireless local area network access point, so that the access terminal receives the identifier input by the user for the target access terminal identifier.
  • FIG. 4 is a schematic structural diagram of a network terminal according to an embodiment of the present invention.
  • the terminal as shown in the figure includes:
  • the obtaining module 410 is configured to obtain an access terminal identifier that accesses the WLAN access point.
  • the access terminal identifier is an identifier that identifies the access terminal, and may be a name, a number, an identity code, and the like of the access terminal, such as an IMEI (International Mobile Equipment Identity), a phone number, and a self.
  • the terminal name and the like are defined, and are not specifically limited herein.
  • the access terminal identifier of each access terminal is unique in the wireless local area network.
  • the access terminal may be a mobile terminal having a wireless access function and a communication function, such as a mobile phone.
  • the obtaining module 410 can obtain the access terminal identifier of all accessing the wireless local area network, because the access terminal maintains the connection relationship with the wireless local area network access point. For example, if the access terminal identifier is the internal number of the access terminal, the internal number of the first access terminal is 6001, and the internal number of the second access terminal is 6002, the acquiring module 410 can obtain the first access.
  • the table construction module 420 is configured to allocate an IP address to the access terminal identifier, and establish an IP mapping table, where the IP mapping table includes the access terminal identifier and an IP address corresponding to the access terminal identifier.
  • the IP mapping table is a mapping table that reflects the correspondence between the access terminal identifier and the IP address.
  • the building form module 420 may assign an IP address to each access terminal identifier, that is, assign each access terminal.
  • An IP address according to the correspondence between the access terminal identifier and the assigned IP address, the table construction module 420 can establish an IP mapping table, where the IP mapping table includes the access terminal identifiers obtained by the obtaining module 410 and the connections. Enter the IP address corresponding to the terminal ID. That is to say, the mapping relationship between the access terminal identifier and its corresponding IP address is established through the IP mapping table, and the corresponding access terminal identifier can be found through the IP address, and the corresponding IP address can also be found through the access terminal identifier. .
  • the obtaining module 410 obtains the first access terminal identifier 6001 and the second access terminal identifier 6002, and the table building module 420 can allocate a corresponding IP address 183.33.33.1 to the 6001 and assign a corresponding IP address to the 6002. .33.2, so that an IP mapping table containing 6001 and 6002 and their corresponding IP addresses can be established.
  • the first sending module 430 is configured to send the IP mapping table to an access terminal that accesses the wireless local area network access point, so that the access terminal receives the communication input by the user for the target access terminal identifier. And acquiring, according to the IP mapping table, a target IP address corresponding to the target access terminal identifier, and establishing a communication connection with the target access terminal corresponding to the target IP address.
  • the first sending module 430 may send the IP mapping table to all access terminals accessing the WLAN access point.
  • the access terminal may query the target IP address corresponding to the target access terminal identifier in the received IP mapping table, and reach the target access terminal by using the target IP address.
  • a connection request is sent, and after the target access terminal accepts the request, a communication connection is established with the target access terminal.
  • the target access terminal identifier may be any access terminal identifier that accesses the wireless local area network access point, that is, the access terminals of the wireless local area network access point may communicate with each other.
  • the communication command for the target access terminal identifier may be a double click, a long press, or a press of a button for the target access terminal identifier, and is not specifically limited herein.
  • the access terminal receives the communication instruction for 6001, and the access terminal can query the IP mapping table.
  • the IP address corresponding to 6001 is 183.33.33.1
  • the access terminal can send a Socket connection request based on the 183.33.33.1 IP address.
  • the target access terminal can return an ACK confirmation character, and the access terminal receives the confirmation character.
  • a communication connection can be established with the target access terminal corresponding to the target IP address, that is, the call is made.
  • the first update module 440 is configured to update the IP mapping table when detecting that the newly added access terminal accesses the wireless local area network access point.
  • the first update module 440 may obtain the access terminal identifier of the newly added access terminal, and identify the access terminal of the newly added access terminal. The IP address is allocated. At this time, the access terminal in the WLAN is added, and the first update module 440 adds the access terminal identifier and the corresponding IP address of the newly added access terminal to the original IP mapping table to form an update. IP mapping table.
  • the first update module 440 when detecting that the new access terminal accesses the WLAN access point, the first update module 440 obtains the access terminal identifier of the newly added access terminal as 6003, and the network terminal allocates a corresponding IP to the newly added 6003.
  • the address 183.33.33.3 adds the IP address 183.33.33.3 corresponding to 6003 and 6003 to the IP mapping table that originally only contains 6001 and 6002 and their corresponding IP addresses, and completes the operation of updating the IP mapping table.
  • the second sending module 450 is configured to send the updated IP mapping table to the access terminal of the WLAN access point.
  • the second sending module 450 sends the new IP mapping table to the access terminal of the WLAN access point, so that the access terminal can communicate with the newly added access terminal.
  • the receiving module 460 is configured to receive the access information sent by the access terminal, where the access information includes an IP address of the access terminal and an access terminal identifier.
  • the access information may be sent by the receiving terminal to the receiving module 460 after the receiving module 460 sends the access information to the access terminal when receiving the user command, or the access terminal may be the timed or The operation is sent to the receiving module 460 when the user command is received; the access terminal may automatically detect the operation of sending the access information to the receiving module 460 triggered by the user after modifying the content in the access information, which is not specifically limited herein.
  • the detecting module 470 is configured to detect whether the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table is consistent with the received access terminal identifier in the received access information.
  • the detecting module 470 may look up the access terminal identifier corresponding to the IP address of the access terminal in the access information in the IP mapping table, and compare the IP mapping table. Corresponding access terminal identifiers and access terminal identifiers in the access information determine whether the two are consistent.
  • the second update module 480 is configured to: when the access terminal identifier is inconsistent, update the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table to the received access information. Access terminal identity.
  • the second update module 480 replaces the corresponding access terminal identifier in the IP mapping table with the access information.
  • Access terminal identity in .
  • the access information received by the receiving module 460 is "6004-183.33.33.1", and the access information is received.
  • the detection module 470 queries the access terminal identifier corresponding to 183.33.33.1 to be 6001 through the IP mapping table, and compares the access terminal identifier 6001 of the access terminal with the IP address 183.33.33.1 in the IP mapping table.
  • the incoming terminal identifier 6004 in the incoming information is inconsistent, and the second update module 480 replaces the access terminal identifier corresponding to 183.33.33.1 in the IP mapping table from 6001 to 6004.
  • the third sending module 490 is configured to send the updated IP mapping table to the access terminal of the wireless local area network access point.
  • the third sending module 490 sends the new IP mapping table to the access terminal of the WLAN access point, so that the access terminal can change the access of the access terminal identifier.
  • the terminal communicates.
  • the embodiment of the present invention obtains an IP address by assigning an IP address to the access terminal identifier by acquiring an access terminal identifier of the access point of the wireless local area network, where the IP mapping table includes the access terminal identifier and the And the access terminal identifier is sent to the access terminal that accesses the wireless local area network access point, so that the access terminal receives the identifier input by the user for the target access terminal identifier.
  • the optional embodiment of the present invention further increases the bidirectional update of the IP mapping table between the network terminal and the access terminal, and improves the accuracy of the communication.
  • FIG. 5 is a schematic structural diagram of a structure of an access terminal according to an embodiment of the present invention.
  • the terminal as shown in the figure includes:
  • the receiving module 510 is configured to receive an IP mapping table sent by the network terminal, where the IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier.
  • the IP mapping table is a mapping table that reflects the correspondence between the access terminal identifier and the IP address, and includes all access terminal identifiers and corresponding IP addresses that access the wireless local area network access point.
  • the receiving module 510 can obtain the IP address assigned by the network terminal to the access terminal itself, and can also acquire other other accessing the same wireless local area network access point with the access terminal.
  • the IP address corresponding to the access terminal identifier may include “6001-183.33.33.1” and “6002-183.33.33.2”, respectively representing the first access terminal identifier and the corresponding IP address and the second access terminal and the corresponding IP address.
  • the instruction module 520 is configured to receive a communication instruction entered by the user for the target access terminal identification.
  • the target access terminal identifier may be any access terminal identifier that accesses the wireless local area network access point, and the communication instruction may be a double click, long press, and press of a button light operation performed by the user for the target access terminal identifier. This is not specifically limited. For example, if the user inputs the target terminal identifier of 6001 in the access terminal and presses the dial key, the command module 520 receives the communication instruction for the target access terminal identifier 6001.
  • the searching module 530 is configured to search for a target IP address corresponding to the target access terminal identifier according to the IP mapping table.
  • the searching module 530 can find the target IP address corresponding to the target terminal identifier through the IP mapping table.
  • the target access terminal identifier entered by the user is 6001.
  • the search module 530 can query the IP address corresponding to the 6001 in the IP mapping table to be 183.33.33.1.
  • the communication module 540 is configured to establish a communication connection with the target access terminal corresponding to the target IP address according to the target IP address.
  • the communication module 540 can send a connection request to the target IP address by using the queried target IP address, and if the target access terminal corresponding to the target IP address accepts the request, the communication module 540 can establish a communication connection with the target joining terminal.
  • the two accesses within the WLAN access point can communicate with each other.
  • the target access terminal may listen to the network before the access terminal sends the connection request, and after listening to the connection request sent by the communication module 540, different feedback may be performed according to different situations. Only when the communication module 540 receives the acknowledgment feedback of the target access terminal, can the communication connection be established and communicated with the target access terminal.
  • the target access terminal may send an acknowledgement message to the communication module 540 to establish communication. If the user detects that the user has not triggered the accepting command for a long time or has refused to accept the call, the target access terminal may not feed back the connection request or feed back the reject message; if the target access terminal is currently in communication, the target The access terminal may also not feed back the connection request or feed back a busy message.
  • the communication module 540 includes: a requesting unit 541 and a communication unit 542, as shown in FIG. 6, wherein:
  • the requesting unit 541 is configured to send a connection request to the target access terminal corresponding to the target IP address according to the target IP address.
  • the requesting unit 541 may send an IP address-based Socket connection request to the target access terminal, where the Socket connection request may include an access terminal identifier and an IP address of the access terminal.
  • the target access terminal can obtain the source of the connection request, and then can be displayed to the user in the target access terminal. Further, if the target access terminal user also stores the user name of the access terminal identifier, the target access terminal may further display the user name corresponding to the access terminal.
  • the communication unit 542 is configured to establish a communication connection with the target access terminal corresponding to the target IP address when receiving the acknowledgement character sent by the target access terminal.
  • the confirmation character may be an ACK confirmation character sent by the target access terminal after receiving the received communication instruction input by the user, indicating that the target access terminal has received the connection request, and agrees to the connection request.
  • the IP-based communication connection can be established with the target access terminal corresponding to the target IP address, and the communication unit 542 and the target access terminal can transmit the voice in both directions. Or video information, the two sides can decode the received voice or video information to obtain the information content.
  • the sending module 550 is configured to send the access information to the network terminal, where the access information includes an IP address of the local end and an access terminal identifier, so that the network terminal detects the IP mapping table.
  • the access terminal identifier corresponding to the IP address of the access terminal is different from the access terminal identifier in the access information, the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table is updated to An access terminal identifier in the access information.
  • the access information may be sent by the sending module 550 to the network terminal after the network terminal is scheduled to send the access information to the access terminal, and the sending module 550 may be received or received.
  • the sending module 550 may automatically detect the operation of sending the access information to the network terminal triggered by the user after modifying the content in the access information, which is not specifically limited herein.
  • the network terminal may look up the access terminal identifier corresponding to the IP address of the access terminal in the access information in the IP mapping table, and compare the IP.
  • the corresponding access terminal identifier in the mapping table and the access terminal identifier in the access information are used to determine whether the two are consistent. If the network terminal detects that the corresponding access terminal identifier in the IP mapping table is inconsistent with the access terminal identifier in the access information, replace the corresponding access terminal identifier in the IP mapping table with the access terminal identifier in the access information. .
  • the access terminal identity of the original “6001” to "6004" in the access terminal is "6004-183.33.33.1", and the network terminal receives the access.
  • the access terminal identifier corresponding to 183.33.33.1 is 6001 through the IP mapping table, and the access terminal identifier 6001 and the access information of the access terminal with the IP address 183.33.33.1 in the IP mapping table can be determined. If the incoming terminal identifier 6004 is inconsistent, the access terminal identifier corresponding to 183.33.33.1 in the IP mapping table is replaced from 6001 to 6004.
  • the update receiving module 560 is configured to receive the updated IP mapping table sent by the network terminal.
  • the new IP mapping table is sent to the update receiving module 560 of the WLAN access point, and the update receiving module 560 receives the updated IP mapping table, and other accesses are received.
  • the terminal can communicate with the access terminal that has changed the access terminal identity.
  • the embodiment of the present invention obtains an IP address by assigning an IP address to the access terminal identifier by acquiring an access terminal identifier of the access point of the wireless local area network, where the IP mapping table includes the access terminal identifier and the And the access terminal identifier is sent to the access terminal that accesses the wireless local area network access point, so that the access terminal receives the identifier input by the user for the target access terminal identifier.
  • the optional embodiment of the present invention further increases the bidirectional update of the IP mapping table between the network terminal and the access terminal, and improves the accuracy of the communication.
  • FIG. 7 is a schematic structural diagram of a wireless local area network communication system according to an embodiment of the present invention.
  • the system as shown includes a network terminal 10 and an access terminal 20, wherein:
  • the network terminal 10 is configured to obtain an access terminal identifier that accesses the WLAN access point, allocate an IP address to the access terminal identifier, and establish an IP mapping table, where the IP mapping table includes the access terminal identifier And the IP address corresponding to the access terminal identifier; sending the IP mapping table to an access terminal that accesses the WLAN access point, so that the access terminal receives the target access input by the user And obtaining, by the IP mapping table, a target IP address corresponding to the target access terminal identifier, and establishing a communication connection with the target access terminal corresponding to the target IP address.
  • the access terminal 20 is configured to receive an IP mapping table sent by the network terminal, where the IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier, and receives a communication instruction that is input by the user for the target access terminal identifier. And searching, according to the IP mapping table, a target IP address corresponding to the target access terminal identifier, and establishing, according to the target IP address, a communication connection with the target access terminal corresponding to the target IP address.
  • FIG. 8 is a schematic structural diagram of another network terminal according to an embodiment of the present invention.
  • the network terminal 10 in the embodiment of the present invention may be different types of electronic devices, such as: smart phones, tablet computers, handheld computers, and mobile Internet devices, personal digital assistants, media players, smart TVs, smart watches. , smart glasses, smart bracelets, etc.
  • the terminal 10 in the embodiment of the present invention includes: at least one processor 101, such as a CPU, at least one transceiver 103, and at least one memory 102.
  • the processor 101, the transceiver 103, and the memory 102 are connected and communicated through a bus system.
  • the memory 102 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • Program code is stored in the memory 102, and the processor 101 can call the program code stored in the memory 102 to perform related functions through a bus system.
  • each module described in FIG. 4 for example, the obtaining module 410, the metering module 420, the first sending module 430, the first updating module 440, the second sending module 450, The receiving module 460, the detecting module 470, the second updating module 480, the third sending module 490, and the like) are program codes stored in the memory 102, and are executed by the processor 101. Thereby implementing the functions of the respective units to implement a communication method of the wireless local area network.
  • the processor 101 acquires an access terminal identifier of an access WLAN access point; assigns an IP address to the access terminal identifier, and establishes an IP mapping table, where the IP mapping table includes the access a terminal identifier and an IP address corresponding to the access terminal identifier; sending the IP mapping table to an access terminal that accesses the WLAN access point, so that the access terminal receives a target input by a user
  • the target IP address corresponding to the target access terminal identifier is obtained according to the IP mapping table, and the target access terminal corresponding to the target IP address establishes a communication connection.
  • the processor when detecting that the newly added access terminal accesses the wireless local area network access point, updating the IP mapping table; sending the updated IP mapping table to the An access terminal of a wireless local area network access point.
  • the processor receiving access information sent by the access terminal, where the access information includes an IP address of the access terminal and an access terminal identifier; detecting the IP mapping Whether the access terminal identifier corresponding to the IP address of the access terminal in the table is consistent with the received access terminal identifier in the received access information; if not, the access terminal in the IP mapping table is used.
  • the access terminal identifier corresponding to the IP address is updated to the received access terminal identifier in the received access information; and the updated IP mapping table is sent to the access terminal of the wireless local area network access point.
  • FIG. 9 is a schematic structural diagram of another access terminal in an embodiment of the present invention.
  • the access terminal 20 in the embodiment of the present invention may be different types of electronic devices, such as: smart phones, tablet computers, handheld computers, and mobile Internet devices, personal digital assistants, media players, smart televisions, and smart phones. Watches, smart glasses, smart bracelets, etc.
  • the terminal 20 in the embodiment of the present invention includes: at least one processor 201, such as a CPU, at least one transceiver 203, and at least one memory 202.
  • the processor 201, the transceiver 203, and the memory 202 are connected and communicated through a bus system.
  • the memory 202 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
  • Program code is stored in the memory 202, and the processor 201 can call the program code stored in the memory 202 to perform related functions through a bus system.
  • the various modules described in FIG. 5 and FIG. 6 eg, the receiving module 510, the instruction module 520, the lookup module 530, the communication module 540, the update receiving module 560, the sending Module 550, etc.
  • the processor 201 is program code stored in said memory 202 and executed by said processor 201 to implement the functions of said various modules to implement a wireless local area network communication method.
  • the processor 201 receiving an IP mapping table sent by the network terminal, where the IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier; and receiving, by the user, the target access terminal identifier a communication command; searching for a target IP address corresponding to the target access terminal identifier according to the IP mapping table; and establishing a communication connection with the target access terminal corresponding to the target IP address according to the target IP address.
  • the processor 201 sends a connection request to the target access terminal corresponding to the target IP address according to the target IP address; when receiving the confirmation character sent by the target access terminal Establishing a communication connection with the target access terminal corresponding to the target IP address.
  • the access information is sent to the network terminal, and the access information includes an IP address of the local end and an access terminal identifier, so that the network terminal detects the IP mapping table.
  • the access terminal identifier corresponding to the IP address of the access terminal is inconsistent with the access terminal identifier in the access information, update the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table. And identifying, by the access terminal in the access information, the updated IP mapping table sent by the network terminal.
  • the embodiment of the present invention obtains an IP address by assigning an IP address to the access terminal identifier by acquiring an access terminal identifier of the access point of the wireless local area network, where the IP mapping table includes the access terminal identifier and the And the access terminal identifier is sent to the access terminal that accesses the wireless local area network access point, so that the access terminal receives the identifier input by the user for the target access terminal identifier.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Embodiments of the present invention provide a wireless local area network communication method, comprising: obtaining identifier of an access terminal which accesses a wireless local area network access point; allocating an IP address to the identifier of the access terminal and establishing an IP mapping table, wherein the IP mapping table comprises the identifier of the access terminal and the IP address corresponding to the identifier of the access terminal; and sending the IP mapping table to the access terminal which accesses the wireless local area network access point, such that the access terminal obtains a target IP address corresponding to an identifier of a target access terminal according to the IP mapping table when receiving a communication instruction that is entered by a user and involves the identifier of the target access terminal, so as to establish a communication connection with the target access terminal corresponding to the target IP address. The present invention also provides a network terminal and a wireless local area network communication system. By means of the present invention, communications among all mobile terminals accessing a same wireless local area network access point can be implemented, thereby making internal communication more convenient and efficient.

Description

一种无线局域网通信方法、终端及系统Wireless local area network communication method, terminal and system
本申请要求于2015年12月31日提交中国专利局,申请号为201511032524.X、发明名称为“一种无线局域网通信方法、终端及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese Patent Application No. 201511032524.X, entitled "Wireless Local Area Network Communication Method, Terminal and System", filed on December 31, 2015, the entire contents of which are hereby incorporated by reference. Combined in this application.
技术领域Technical field
本发明涉及电子技术领域,尤其涉及一种无线局域网通信方法、终端及系统。The present invention relates to the field of electronic technologies, and in particular, to a wireless local area network communication method, terminal, and system.
背景技术Background technique
现阶段,企业或单位内部通信的方式主要是通过内线座机电话,通过内线座机可以免费向企业或单位内部的同事拨打电话,这种方法看起来费用很低,但是由于内线座机是通过内部交换机实现的,因此企业需要购买交换机且进行维护,也一定程度的增加了通信费用;更重要的是,座机存在占用空间、安装不便、不能移动接打电话等问题,影响了通信的便捷性,例如如果有人有事离开座位,那么就无法接到座机电话,降低了通信效率。At this stage, the internal communication method of the enterprise or the unit is mainly through the internal landline telephone, and the internal landline machine can make a free call to the enterprise or the colleagues inside the unit. This method seems to be very low cost, but since the internal landline is realized through the internal switch Therefore, enterprises need to purchase switches and perform maintenance, which also increases the communication cost to a certain extent; more importantly, the landline has problems such as occupying space, inconvenient installation, and being unable to move and make calls, which affects the convenience of communication, for example, if Someone has something to leave, so they can't get a landline call, which reduces communication efficiency.
发明内容Summary of the invention
本发明实施例所要解决的技术问题在于,提供一种无线局域网通信方法、终端及系统,可以使接入同一无线局域网接入点的所有移动终端之间实现通信,从而提高了内部通信的便捷性以及通信效率。The technical problem to be solved by the embodiments of the present invention is to provide a wireless local area network communication method, terminal, and system, which can enable communication between all mobile terminals accessing the same wireless local area network access point, thereby improving the convenience of internal communication. And communication efficiency.
本发明实施例提供了一种无线局域网通信方法,所述方法包括:The embodiment of the invention provides a wireless local area network communication method, and the method includes:
获取接入无线局域网接入点的接入终端标识;Obtaining an access terminal identifier for accessing a wireless local area network access point;
向所述接入终端标识分配IP地址,建立IP映射表,所述IP映射表包含所述接入终端标识以及所述接入终端标识对应的IP地址;Assigning an IP address to the access terminal identifier, and establishing an IP mapping table, where the IP mapping table includes the access terminal identifier and an IP address corresponding to the access terminal identifier;
将所述IP映射表发送给接入所述无线局域网接入点的接入终端,以使所述接入终端接收到用户输入的针对目标接入终端标识的通信指令时,根据所述IP映射表获取目标接入终端标识对应的目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接。Transmitting the IP mapping table to an access terminal that accesses the WLAN access point, so that when the access terminal receives a communication instruction input by the user for the target access terminal identifier, according to the IP mapping The table obtains a target IP address corresponding to the target access terminal identifier, and establishes a communication connection with the target access terminal corresponding to the target IP address.
可选的,所述方法还包括:Optionally, the method further includes:
当检测到新增接入终端接入所述无线局域网接入点时,更新所述IP映射表;Updating the IP mapping table when detecting that the newly added access terminal accesses the wireless local area network access point;
将更新后的所述IP映射表发送给所述无线局域网接入点的接入终端。Transmitting the updated IP mapping table to an access terminal of the wireless local area network access point.
可选的,所述方法还包括:Optionally, the method further includes:
接收所述接入终端发送的接入信息,所述接入信息包括所述接入终端的IP地址以及接入终端标识;Receiving access information sent by the access terminal, where the access information includes an IP address of the access terminal and an access terminal identifier;
检测在所述IP映射表中所述接入终端的IP地址对应的接入终端标识与接收到的所述接入信息中的接入终端标识是否一致;Detecting whether the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table is consistent with the received access terminal identifier in the received access information;
若不一致,则将所述IP映射表中所述接入终端的IP地址对应的接入终端标识更新为接收到的所述接入信息中的接入终端标识;If not, the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table is updated to the received access terminal identifier in the received access information;
将更新后的所述IP映射表发送给所述无线局域网接入点的接入终端。Transmitting the updated IP mapping table to an access terminal of the wireless local area network access point.
本发明实施例还提供了一种无线局域网通信方法,所述方法包括:The embodiment of the invention further provides a wireless local area network communication method, the method comprising:
接收网络终端发送的IP映射表,所述IP映射表包含接入终端标识以及接入终端标识对应的IP地址;Receiving an IP mapping table sent by the network terminal, where the IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier;
接收用户输入的针对目标接入终端标识的通信指令;Receiving a communication instruction input by the user for the target access terminal identifier;
根据所述IP映射表,查找所述目标接入终端标识对应的目标IP地址;Searching, according to the IP mapping table, a target IP address corresponding to the target access terminal identifier;
根据所述目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接。Establishing a communication connection with the target access terminal corresponding to the target IP address according to the target IP address.
可选的,所述根据所述目标IP地址,与所述目标IP地址对应的目标接入终端建立连接包括:Optionally, the establishing, according to the target IP address, establishing a connection with the target access terminal corresponding to the target IP address includes:
根据所述目标IP地址,向所述目标IP地址对应的目标接入终端发送连接请求;Sending a connection request to the target access terminal corresponding to the target IP address according to the target IP address;
当接收到所述目标接入终端发送的确认字符时,与所述目标IP地址对应的目标接入终端建立通信连接。When receiving the acknowledgement character sent by the target access terminal, the target access terminal corresponding to the target IP address establishes a communication connection.
可选的,所述方法还包括:Optionally, the method further includes:
将接入信息发送给所述网络终端,所述接入信息包括本端的IP地址以及接入终端标识,以使所述网络终端在检测到所述IP映射表中所述接入终端的IP地址对应的接入终端标识与所述接入信息中的接入终端标识不一致时,将所述IP映射表中所述接入终端的IP地址对应的接入终端标识更新为所述接入信息中的接入终端标识;Sending the access information to the network terminal, where the access information includes an IP address of the local end and an access terminal identifier, so that the network terminal detects the IP address of the access terminal in the IP mapping table. When the corresponding access terminal identifier is inconsistent with the access terminal identifier in the access information, the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table is updated to the access information. Access terminal identity;
接收所述网络终端发送的更新后的所述IP映射表。Receiving the updated IP mapping table sent by the network terminal.
相应的,本发明实施例提供了一种网络终端,所述终端包括:Correspondingly, an embodiment of the present invention provides a network terminal, where the terminal includes:
获取模块,设置为获取接入所述无线局域网接入点的接入终端标识;An obtaining module, configured to obtain an access terminal identifier that accesses the wireless local area network access point;
建表模块,设置为向所述接入终端标识分配IP地址,建立IP映射表,所述IP映射表包含所述接入终端标识以及所述接入终端标识对应的IP地址;a table building module, configured to allocate an IP address to the access terminal identifier, and establish an IP mapping table, where the IP mapping table includes the access terminal identifier and an IP address corresponding to the access terminal identifier;
第一发送模块,设置为将所述IP映射表发送给接入所述无线局域网接入点的接入终端,以使所述接入终端接收到用户输入的针对目标接入终端标识的通信指令时,根据所述IP映射表获取目标接入终端标识对应的目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接。a first sending module, configured to send the IP mapping table to an access terminal that accesses the wireless local area network access point, so that the access terminal receives a communication instruction that is input by the user for the target access terminal identifier And acquiring, by the IP mapping table, a target IP address corresponding to the target access terminal identifier, and establishing a communication connection with the target access terminal corresponding to the target IP address.
可选的,所述终端还包括:Optionally, the terminal further includes:
第一更新模块,设置为当检测到新增接入终端接入所述无线局域网接入点时,更新所述IP映射表;The first update module is configured to update the IP mapping table when detecting that the newly added access terminal accesses the wireless local area network access point;
第二发送模块,设置为将更新后的所述IP映射表发送给所述无线局域网接入点的接入终端。The second sending module is configured to send the updated IP mapping table to the access terminal of the wireless local area network access point.
可选的,所述终端还包括:Optionally, the terminal further includes:
接收模块,设置为接收所述接入终端发送的接入信息,所述接入信息包括所述接入终端的IP地址以及接入终端标识;a receiving module, configured to receive access information sent by the access terminal, where the access information includes an IP address of the access terminal and an access terminal identifier;
检测模块,设置为检测在所述IP映射表中所述接入终端的IP地址对应的接入终端标识与接收到的所述接入信息中的接入终端标识是否一致;a detecting module, configured to detect whether an access terminal identifier corresponding to an IP address of the access terminal in the IP mapping table is consistent with an received access terminal identifier in the received access information;
第二更新模块,设置为检测到接入终端标识不一致时,将所述IP映射表中所述接入终端的IP地址对应的接入终端标识更新为接收到的所述接入信息中的接入终端标识;a second update module, configured to: when the access terminal identifier is inconsistent, update the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table to the received access information Enter the terminal identifier;
第三发送模块,设置为将更新后的所述IP映射表发送给所述无线局域网接入点的接入终端。The third sending module is configured to send the updated IP mapping table to the access terminal of the WLAN access point.
相应的,本发明实施例还提供了一种接入终端,所述终端包括:Correspondingly, the embodiment of the present invention further provides an access terminal, where the terminal includes:
接收模块,设置为接收网络终端发送的IP映射表,所述IP映射表包含接入终端标识以及接入终端标识对应的IP地址;a receiving module, configured to receive an IP mapping table sent by the network terminal, where the IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier;
指令模块,设置为接收用户输入的针对目标接入终端标识的通信指令;An instruction module, configured to receive a communication instruction input by the user for the target access terminal identifier;
查找模块,设置为根据所述IP映射表,查找所述目标接入终端标识对应的目标IP地址;a locating module, configured to search for a target IP address corresponding to the target access terminal identifier according to the IP mapping table;
通信模块,设置为根据所述目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接。And a communication module, configured to establish a communication connection with the target access terminal corresponding to the target IP address according to the target IP address.
可选的,所述通信模块包括:Optionally, the communication module includes:
请求单元,设置为根据所述目标IP地址,向所述目标IP地址对应的目标接入终端发送连接请求;a requesting unit, configured to send a connection request to the target access terminal corresponding to the target IP address according to the target IP address;
通信单元,设置为当接收到所述目标接入终端发送的确认字符时,与所述目标IP地址对应的目标接入终端建立通信连接。The communication unit is configured to establish a communication connection with the target access terminal corresponding to the target IP address when receiving the acknowledgement character sent by the target access terminal.
可选的,所述终端还包括:Optionally, the terminal further includes:
发送模块,设置为将接入信息发送给所述网络终端,所述接入信息包括本端的IP地址以及接入终端标识,以使所述网络终端在检测到所述IP映射表中所述接入终端的IP地址对应的接入终端标识与所述接入信息中的接入终端标识不一致时,将所述IP映射表中所述接入终端的IP地址对应的接入终端标识更新为所述接入信息中的接入终端标识;a sending module, configured to send the access information to the network terminal, where the access information includes an IP address of the local end and an access terminal identifier, so that the network terminal detects the connection in the IP mapping table When the access terminal identifier corresponding to the IP address of the inbound terminal is inconsistent with the access terminal identifier in the access information, update the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table to An access terminal identifier in the access information;
更新接收模块,设置为接收所述网络终端发送的更新后的所述IP映射表。And an update receiving module, configured to receive the updated IP mapping table sent by the network terminal.
相应的,本发明还提供了一种无线局域网通信系统,所述系统包括网络终端和接入终端,其中:Correspondingly, the present invention also provides a wireless local area network communication system, the system comprising a network terminal and an access terminal, wherein:
网络终端,用于获取接入所述无线局域网接入点的接入终端标识;向所述接入终端标识分配IP地址,建立IP映射表,所述IP映射表包含所述接入终端标识以及所述接入终端标识对应的IP地址;将所述IP映射表发送给接入所述无线局域网接入点的接入终端,以使所述接入终端接收到用户输入的针对目标接入终端标识的通信指令时,根据所述IP映射表获取目标接入终端标识对应的目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接;a network terminal, configured to obtain an access terminal identifier that accesses the WLAN access point, allocate an IP address to the access terminal identifier, and establish an IP mapping table, where the IP mapping table includes the access terminal identifier and The access terminal identifies a corresponding IP address, and sends the IP mapping table to an access terminal that accesses the wireless local area network access point, so that the access terminal receives the user input for the target access terminal. And obtaining, by the IP mapping table, a target IP address corresponding to the target access terminal identifier, and establishing a communication connection with the target access terminal corresponding to the target IP address;
接入终端,用于接收网络终端发送的IP映射表,所述IP映射表包含接入终端标识以及接入终端标识对应的IP地址;接收用户输入的针对目标接入终端标识的通信指令;根据所述IP映射表,查找所述目标接入终端标识对应的目标IP地址;根据所述目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接。The access terminal is configured to receive an IP mapping table sent by the network terminal, where the IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier, and receives a communication instruction input by the user for the target access terminal identifier; The IP mapping table is configured to search for a target IP address corresponding to the target access terminal identifier, and establish a communication connection with the target access terminal corresponding to the target IP address according to the target IP address.
本发明实施例通过获取接入无线局域网接入点的接入终端标识,向所述接入终端标识分配IP地址,建立IP映射表,所述IP映射表包含所述接入终端标识以及所述接入终端标识对应的IP地址,将所述IP映射表发送给接入所述无线局域网接入点的接入终端,以使所述接入终端接收到用户输入的针对目标接入终端标识的通信指令时,根据所述IP映射表获取目标接入终端标识对应的目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接,可以使接入同一无线局域网接入点的所有移动终端之间实现通信,从而提高了内部通信的便捷性以及通信效率。The embodiment of the present invention obtains an IP address by assigning an IP address to the access terminal identifier by acquiring an access terminal identifier of the access point of the wireless local area network, where the IP mapping table includes the access terminal identifier and the And the access terminal identifier is sent to the access terminal that accesses the wireless local area network access point, so that the access terminal receives the identifier input by the user for the target access terminal identifier. Obtaining a target IP address corresponding to the target access terminal identifier according to the IP mapping table, establishing a communication connection with the target access terminal corresponding to the target IP address, and enabling access to all the same WLAN access point Communication is realized between mobile terminals, thereby improving the convenience of internal communication and communication efficiency.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1是本发明实施例中一种无线局域网通信方法的流程示意图;1 is a schematic flow chart of a wireless local area network communication method according to an embodiment of the present invention;
图2是本发明另一实施例中无线局域网通信方法的流程示意图;2 is a schematic flow chart of a wireless local area network communication method according to another embodiment of the present invention;
图3是本发明实施例中一种无线局域网通信方法的交互流程示意图;3 is a schematic diagram of an interaction process of a wireless local area network communication method according to an embodiment of the present invention;
图4是本发明实施例中一种网络终端的组成结构示意图;4 is a schematic structural diagram of a network terminal according to an embodiment of the present invention;
图5是本发明实施例中一种接入终端的组成结构示意图;FIG. 5 is a schematic structural diagram of a structure of an access terminal according to an embodiment of the present invention; FIG.
图6是本发明实施例中图5的通信模块的组成结构图;6 is a structural diagram of a communication module of FIG. 5 according to an embodiment of the present invention;
图7是本发明实施例中一种无线局域网通信系统的组成结构示意图;7 is a schematic structural diagram of a wireless local area network communication system according to an embodiment of the present invention;
图8是本发明实施例中另一种网络终端的组成结构示意图;FIG. 8 is a schematic structural diagram of another network terminal according to an embodiment of the present invention; FIG.
图9是本发明实施例中另一种接入终端的组成结构示意图。FIG. 9 is a schematic structural diagram of another access terminal in an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图1是本发明实施例中一种无线局域网通信方法的流程示意图,本方法流程可以由网络终端实施,所述网络终端可以为具有无线局域网热点建立功能的终端或运行在终端的软件程序,所述终端可以包括无线路由器、手机、笔记本电脑、车载电脑等。如图所示所述方法至少包括:1 is a schematic flowchart of a wireless local area network communication method according to an embodiment of the present invention. The method may be implemented by a network terminal, where the network terminal may be a terminal having a wireless local area network hotspot establishing function or a software program running on the terminal. The terminal may include a wireless router, a mobile phone, a notebook computer, a car computer, and the like. The method as shown in the figure includes at least:
步骤S101,获取接入所述无线局域网接入点的接入终端标识。Step S101: Acquire an access terminal identifier that accesses the wireless local area network access point.
具体的,接入终端标识是识别接入终端的一种标识,可以是接入终端的名称、号码、身份码等,例如IMEI(International Mobile Equipment Identity,国际移动设备身份码)、电话号码、自定义终端名称等等,这里不作具体限定。需要说明的是,每个接入终端的接入终端标识是在该无线局域网中唯一的。这里,接入终端可以是具备无线接入功能和通信功能的移动终端,例如手机。Specifically, the access terminal identifier is an identifier that identifies the access terminal, and may be a name, a number, an identity code, and the like of the access terminal, such as an IMEI (International Mobile Equipment Identity), a phone number, and a self. The terminal name and the like are defined, and are not specifically limited herein. It should be noted that the access terminal identifier of each access terminal is unique in the wireless local area network. Here, the access terminal may be a mobile terminal having a wireless access function and a communication function, such as a mobile phone.
在本实施例中,由于接入终端与无线局域网接入点保持的连接关系,网络终端可以获取接入所有接入无线局域网的接入终端标识。例如,设定接入终端标识为接入终端的内部号码,设第一接入终端的内部号码为6001,第二接入终端的内部号码为6002,则网络终端可以获取到第一接入终端标识6001以及第二接入终端标识6002。In this embodiment, the network terminal can obtain the access terminal identifier of all accessing the wireless local area network due to the connection relationship between the access terminal and the wireless local area network access point. For example, if the access terminal is identified as the internal number of the access terminal, the internal number of the first access terminal is 6001, and the internal number of the second access terminal is 6002, the network terminal can obtain the first access terminal. The identifier 6001 and the second access terminal identifier 6002.
步骤S102,向所述接入终端标识分配IP地址,建立IP映射表,所述IP映射表包含所述接入终端标识以及所述接入终端标识对应的IP地址。Step S102: Assign an IP address to the access terminal identifier, and establish an IP mapping table, where the IP mapping table includes the access terminal identifier and an IP address corresponding to the access terminal identifier.
具体的,IP映射表是反映接入终端标识与IP地址之间对应关系的映射表。Specifically, the IP mapping table is a mapping table that reflects the correspondence between the access terminal identifier and the IP address.
在本实施例中,网络终端在获取到接入无线局域网接入点的所有接入终端标识后,可以向每个接入终端标识分配一个IP地址,也即向每个接入终端分配一个IP地址,根据接入终端标识与分配的IP地址之间的对应关系,网络终端可以建立IP映射表,IP映射表中包含了网络终端获取到的各接入终端标识以及各接入终端标识对应的IP地址。也就是说,通过IP映射表,建立了接入终端标识与其对应的IP地址的对应关系,通过IP地址可以查找到对应的接入终端标识,通过接入终端标识也可以查找到对应的IP地址。In this embodiment, after obtaining the access identifiers of all the access terminals of the wireless local area network access point, the network terminal may assign an IP address to each access terminal identifier, that is, assign an IP address to each access terminal. The address, according to the correspondence between the access terminal identifier and the assigned IP address, the network terminal may establish an IP mapping table, where the IP mapping table includes the access terminal identifiers obtained by the network terminal and the corresponding access terminal identifiers. IP address. That is to say, the mapping relationship between the access terminal identifier and its corresponding IP address is established through the IP mapping table, and the corresponding access terminal identifier can be found through the IP address, and the corresponding IP address can also be found through the access terminal identifier. .
例如,终端获取到第一接入终端标识6001以及第二接入终端标识6002,则可以向6001分配一个对应的IP地址183.33.33.1,向6002分配一个对应的IP地址183.33.33.2,从而可以建立包含6001和6002及其对应的IP地址的IP映射表。For example, if the terminal acquires the first access terminal identifier 6001 and the second access terminal identifier 6002, the terminal may assign a corresponding IP address 183.33.33.1 to the 6001, and assign a corresponding IP address 183.33.33.2 to the 6002, so that the terminal can be established. An IP mapping table containing 6001 and 6002 and their corresponding IP addresses.
步骤S103,将所述IP映射表发送给接入所述无线局域网接入点的接入终端,以使所述接入终端接收到用户输入的针对目标接入终端标识的通信指令时,根据所述IP映射表获取目标接入终端标识对应的目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接。Step S103: Send the IP mapping table to an access terminal that accesses the wireless local area network access point, so that the access terminal receives a communication instruction input by the user for the target access terminal identifier, according to the The IP mapping table obtains a target IP address corresponding to the target access terminal identifier, and establishes a communication connection with the target access terminal corresponding to the target IP address.
具体的,网络终端建立了IP映射表之后,就可以将该IP映射表发送给接入无线局域网接入点的所有接入终端。当接入终端接收到用户输入的针对目标接入终端标识的通信指令时,可以查询接收到的IP映射表中目标接入终端标识对应的目标IP地址,通过目标IP地址,向目标接入终端发送连接请求,在目标接入终端接受请求之后,与目标接入终端建立通信连接。Specifically, after the network terminal establishes the IP mapping table, the IP mapping table may be sent to all access terminals that access the wireless local area network access point. When the access terminal receives the communication instruction for the target access terminal identifier input by the user, the access terminal may query the target IP address corresponding to the target access terminal identifier in the received IP mapping table, and reach the target access terminal by using the target IP address. A connection request is sent, and after the target access terminal accepts the request, a communication connection is established with the target access terminal.
需要说明的是,目标接入终端标识可以是接入无线局域网接入点的任一接入终端标识,即无线局域网接入点的接入终端之间可以互相通信。针对目标接入终端标识的通信指令可以是用户对目标接入终端标识进行的双击、长按、按下拨打按键等操作,这里不作具体限定。It should be noted that the target access terminal identifier may be any access terminal identifier that accesses the wireless local area network access point, that is, the access terminals of the wireless local area network access point may communicate with each other. The communication command for the target access terminal identifier may be a double click, a long press, or a press of a button for the target access terminal identifier, and is not specifically limited herein.
例如,网络终端将IP映射表发送给接入无线局域网接入点的所有接入终端后,接入终端接收到针对6001的通信指令,此时接入终端可以查询到IP映射表中6001所对应的IP地址为183.33.33.1,则接入终端可以发送基于183.33.33.1IP地址的Socket连接请求,目标接入终端接受请求之后可以返回ACK确认字符,接入终端接收到确认字符后就可以与目标IP地址对应的目标接入终端建立通信连接,即进行通话。For example, after the network terminal sends the IP mapping table to all the access terminals that access the WLAN access point, the access terminal receives the communication command for 6001, and the access terminal can query the 6001 corresponding to the IP mapping table. The IP address is 183.33.33.1, and the access terminal can send a Socket connection request based on the 183.33.33.1 IP address. After receiving the request, the target access terminal can return an ACK confirmation character, and the access terminal can receive the confirmation character. The target access terminal corresponding to the IP address establishes a communication connection, that is, performs a call.
可选的,该方法还可以包括:Optionally, the method may further include:
当检测到新增接入终端接入所述无线局域网接入点时,更新所述IP映射表。When it is detected that the newly added access terminal accesses the wireless local area network access point, the IP mapping table is updated.
具体的,网络终端检测到有新增接入终端接入无线局域网接入点时,可以获取新增接入终端的接入终端标识,并向新增接入终端的接入终端标识分配IP地址,此时无线局域网中的接入终端增加了,则网络终端将新增接入终端的接入终端标识和对应的IP地址增加到原有的IP映射表中形成更新后的IP映射表。Specifically, when the network terminal detects that a new access terminal accesses the WLAN access point, the network terminal can obtain the access terminal identifier of the newly added access terminal, and assign an IP address to the access terminal identifier of the newly added access terminal. At this time, the access terminal in the WLAN is added, and the network terminal adds the access terminal identifier and the corresponding IP address of the newly added access terminal to the original IP mapping table to form an updated IP mapping table.
例如,网络终端检测到新增接入终端接入无线局域网接入点时,获取到新增接入终端的接入终端标识为6003,网络终端给新增的6003分配一个对应的IP地址183.33.33.3,将6003以及6003对应的IP地址183.33.33.3加入原来仅包含6001和6002及其对应的IP地址的IP映射表中,完成更新IP映射表的操作。For example, when the network terminal detects that the new access terminal accesses the WLAN access point, the access terminal identifier of the newly added access terminal is 6003, and the network terminal assigns a corresponding IP address 183.33 to the newly added 6003. 33.3. Add the IP address 183.33.33.3 corresponding to 6003 and 6003 to the IP mapping table that originally only contains 6001 and 6002 and their corresponding IP addresses, and complete the operation of updating the IP mapping table.
将更新后的所述IP映射表发送给所述无线局域网接入点的接入终端。Transmitting the updated IP mapping table to an access terminal of the wireless local area network access point.
具体的,网络终端将IP映射表更新完毕后,将新的IP映射表发送给无线局域网接入点的接入终端,以使接入终端可以与新增的接入终端进行通信。Specifically, after the network terminal updates the IP mapping table, the new IP mapping table is sent to the access terminal of the WLAN access point, so that the access terminal can communicate with the newly added access terminal.
可选的,该方法还可以包括:Optionally, the method may further include:
接收所述接入终端发送的接入信息,所述接入信息包括所述接入终端的IP地址以及接入终端标识。Receiving access information sent by the access terminal, where the access information includes an IP address of the access terminal and an access terminal identifier.
具体的,接入信息可以是网络终端定时或者接收到用户指令时向各个接入终端发出接入信息的获取请求后,接入终端发送给网络终端的;也可以是接入终端定时或者接收到用户指令时向网络终端发送的;还可以是接入终端自动检测到用户修改了接入信息中的内容后触发的向网络终端发送接入信息的操作,这里不作具体限定。Specifically, the access information may be sent by the access terminal to the network terminal after the network terminal periodically or when receiving the user request, and the access terminal sends the access request to the access terminal; or the access terminal may be received or received. When the user instructs the transmission to the network terminal, the access terminal automatically detects that the user has modified the content in the access information and then sends the access information to the network terminal, which is not specifically limited.
检测在所述IP映射表中所述接入终端的IP地址对应的接入终端标识与接收到的所述接入信息中的接入终端标识是否一致。Detecting whether the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table is consistent with the received access terminal identifier in the received access information.
具体的,网络终端在接收到接入终端发送的接入信息后,可以在IP映射表中查找接入信息中的接入终端的IP地址所对应的接入终端标识,对比IP映射表中对应的接入终端标识与接入信息中的接入终端标识,判断两者是否是一致的。Specifically, after receiving the access information sent by the access terminal, the network terminal may look up the access terminal identifier corresponding to the IP address of the access terminal in the access information in the IP mapping table, and compare the corresponding in the IP mapping table. The access terminal identifier and the access terminal identifier in the access information determine whether the two are consistent.
若不一致,则将所述IP映射表中所述接入终端的IP地址对应的接入终端标识更新为接收到的所述接入信息中的接入终端标识。If not, the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table is updated to the received access terminal identifier in the received access information.
具体的,若网络终端检测到IP映射表中对应的接入终端标识与接入信息中的接入终端标识不一致,则将IP映射表中对应的接入终端标识替换为接入信息中的接入终端标识。Specifically, if the network terminal detects that the corresponding access terminal identifier in the IP mapping table is inconsistent with the access terminal identifier in the access information, the corresponding access terminal identifier in the IP mapping table is replaced with the access information. Enter the terminal ID.
例如,用户在接入终端中将原本为“6001”的接入终端标识更改为了“6004”,则网络终端接收到的接入信息即为“6004-183.33.33.1”,网络终端接收到接入信息后,通过IP映射表查询到183.33.33.1对应的接入终端标识为6001,对比后可以确定IP地址为183.33.33.1的接入终端在IP映射表中的接入终端标识6001与接入信息中的入终端标识6004不一致,则将IP映射表中的183.33.33.1对应的接入终端标识从6001替换为6004。For example, if the user changes the access terminal identity of the original "6001" to "6004" in the access terminal, the access information received by the network terminal is "6004-183.33.33.1", and the network terminal receives the access. After the information is obtained, the access terminal identifier corresponding to 183.33.33.1 is 6001 through the IP mapping table, and the access terminal identifier 6001 and the access information of the access terminal with the IP address 183.33.33.1 in the IP mapping table can be determined. If the incoming terminal identifier 6004 is inconsistent, the access terminal identifier corresponding to 183.33.33.1 in the IP mapping table is replaced from 6001 to 6004.
将更新后的所述IP映射表发送给所述无线局域网接入点的接入终端。Transmitting the updated IP mapping table to an access terminal of the wireless local area network access point.
具体的,网络终端将IP映射表更新完毕后,将新的IP映射表发送给无线局域网接入点的接入终端,以使接入终端可以与更改了接入终端标识的接入终端进行通信。Specifically, after the network terminal updates the IP mapping table, the new IP mapping table is sent to the access terminal of the WLAN access point, so that the access terminal can communicate with the access terminal that changes the identity of the access terminal. .
本发明实施例通过获取接入无线局域网接入点的接入终端标识,向所述接入终端标识分配IP地址,建立IP映射表,所述IP映射表包含所述接入终端标识以及所述接入终端标识对应的IP地址,将所述IP映射表发送给接入所述无线局域网接入点的接入终端,以使所述接入终端接收到用户输入的针对目标接入终端标识的通信指令时,根据所述IP映射表获取目标接入终端标识对应的目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接,可以使接入同一无线局域网接入点的所有移动终端之间实现通信,从而提高了内部通信的便捷性以及通信效率。另外,本发明可选实施例还增加了网络终端与接入终端对IP映射表的双向更新,提高了通信的准确性。The embodiment of the present invention obtains an IP address by assigning an IP address to the access terminal identifier by acquiring an access terminal identifier of the access point of the wireless local area network, where the IP mapping table includes the access terminal identifier and the And the access terminal identifier is sent to the access terminal that accesses the wireless local area network access point, so that the access terminal receives the identifier input by the user for the target access terminal identifier. Obtaining a target IP address corresponding to the target access terminal identifier according to the IP mapping table, establishing a communication connection with the target access terminal corresponding to the target IP address, and enabling access to all the same WLAN access point Communication is realized between mobile terminals, thereby improving the convenience of internal communication and communication efficiency. In addition, the optional embodiment of the present invention further increases the bidirectional update of the IP mapping table between the network terminal and the access terminal, and improves the accuracy of the communication.
图2是本发明另一实施例中无线局域网通信方法的流程示意图,该方法包括:2 is a schematic flowchart of a wireless local area network communication method according to another embodiment of the present invention, where the method includes:
步骤S201,接收网络终端发送的IP映射表,所述IP映射表包含接入终端标识以及接入终端标识对应的IP地址。Step S201: Receive an IP mapping table sent by the network terminal, where the IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier.
具体的,IP映射表是反映接入终端标识与IP地址之间对应关系的映射表,包含了接入无线局域网接入点的所有接入终端标识以及对应的IP地址。接入终端接收到网络终端发送的IP映射表后,就可以获取到网络终端给接入终端自身分配的IP地址,同时也可以获取到其他与接入终端接入同一无线局域网接入点的其他接入终端标识对应的IP地址。例如IP映射表中可以包括“6001-183.33.33.1”以及“6002-183.33.33.2”,分别代表第一接入终端标识以及对应的IP地址和第二接入终端以及对应的IP地址。Specifically, the IP mapping table is a mapping table that reflects the correspondence between the access terminal identifier and the IP address, and includes all access terminal identifiers and corresponding IP addresses that access the wireless local area network access point. After receiving the IP mapping table sent by the network terminal, the access terminal may obtain the IP address assigned by the network terminal to the access terminal itself, and may also acquire other other accessing the same wireless local area network access point with the access terminal. The IP address corresponding to the access terminal identifier. For example, the IP mapping table may include “6001-183.33.33.1” and “6002-183.33.33.2”, respectively representing the first access terminal identifier and the corresponding IP address and the second access terminal and the corresponding IP address.
步骤S202,接收用户输入的针对目标接入终端标识的通信指令。Step S202, receiving a communication instruction input by the user for the target access terminal identifier.
具体的,目标接入终端标识可以是接入无线局域网接入点的任一接入终端标识,通信指令可以是用户针对目标接入终端标识进行的双击、长按、按下拨打按键灯操作,这里不作具体限定。例如,用户在接入终端中输入为6001的目标终端标识,并且按下拨号键,则接入终端则接收到了针对目标接入终端标识为6001的通信指令。Specifically, the target access terminal identifier may be any access terminal identifier that accesses the wireless local area network access point, and the communication instruction may be a double click, long press, and press of a button light operation performed by the user for the target access terminal identifier. This is not specifically limited. For example, if the user inputs the target terminal identifier of 6001 in the access terminal and presses the dial key, the access terminal receives the communication command for the target access terminal identifier 6001.
步骤S203,根据所述IP映射表,查找所述目标接入终端标识对应的目标IP地址。Step S203, searching for a target IP address corresponding to the target access terminal identifier according to the IP mapping table.
具体的,接入终端通过IP映射表可以查找到与目标终端标识对应的目标IP地址。例如,用户输入的目标接入终端标识为6001,此时接入终端可以查询到IP映射表中6001所对应的IP地址为183.33.33.1。Specifically, the access terminal can find the target IP address corresponding to the target terminal identifier through the IP mapping table. For example, the target access terminal identifier entered by the user is 6001. At this time, the access terminal can query the IP address corresponding to 6001 in the IP mapping table to be 183.33.33.1.
步骤S204,根据所述目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接。Step S204, establishing a communication connection with the target access terminal corresponding to the target IP address according to the target IP address.
具体的,接入终端通过查询到的目标IP地址,可以向目标IP地址发送连接请求,目标IP地址对应的目标接入终端若接受该请求,则接入终端可以与目标加入终端建立通信连接,则无线局域网接入点内的两个接入中就可以实现相互通信。Specifically, the access terminal may send a connection request to the target IP address by using the queried target IP address, and if the target access terminal corresponding to the target IP address accepts the request, the access terminal may establish a communication connection with the target joining terminal. The two accesses within the WLAN access point can communicate with each other.
在本实施例中,目标接入终端在接入终端发送连接请求之前,可以对网络进行监听,当监听到接入终端发送的连接请求后,可以根据不同情况进行不同的反馈。只有当接入终端接收到目标接入终端的确认反馈后,才可以与目标接入终端建立通信连接并进行通信。In this embodiment, the target access terminal may listen to the network before the access terminal sends the connection request. After listening to the connection request sent by the access terminal, different feedback may be performed according to different situations. Only when the access terminal receives the acknowledgment feedback of the target access terminal can the communication connection be established and communicated with the target access terminal.
例如,若目标接入终端当前处于通信空闲状态,则检测用户是否触发应答、接听或者通话等接受指令,若触发接受指令,则目标接入终端则可以向接入终端发送确认消息,进而建立通信连接;若检测到用户长时间未触发接受指令或者出发了拒绝接听的拒绝指令,则目标接入终端可以不对连接请求进行反馈,或者反馈拒绝消息;若目标接入终端当前处于通信状态,则目标接入终端也可以不对连接请求进行反馈,或者反馈繁忙消息。For example, if the target access terminal is currently in a communication idle state, it detects whether the user triggers an answer, answer, or a call, and if the command is triggered, the target access terminal may send an acknowledgement message to the access terminal to establish communication. If the user detects that the user has not triggered the accepting command for a long time or has refused to accept the call, the target access terminal may not feed back the connection request or feed back the reject message; if the target access terminal is currently in communication, the target The access terminal may also not feed back the connection request or feed back a busy message.
可选的,步骤S204可以包括:Optionally, step S204 may include:
根据所述目标IP地址,向所述目标IP地址对应的目标接入终端发送连接请求。And transmitting, according to the target IP address, a connection request to the target access terminal corresponding to the target IP address.
具体的,接入终端可以向目标接入终端发送基于IP地址的Socket连接请求,其中,Socket连接请求中可以包括接入终端的接入终端标识以及IP地址。目标接入终端接收到连接请求后,则可以获取到连接请求的来源,进而可以在目标接入终端中显示给用户。进一步地,如果目标接入终端用户还相应的存储了接入终端标识的用户姓名,则目标接入终端还可以进一步显示接入终端对应的用户姓名。Specifically, the access terminal may send an IP address-based Socket connection request to the target access terminal, where the Socket connection request may include an access terminal identifier and an IP address of the access terminal. After receiving the connection request, the target access terminal can obtain the source of the connection request, and then can be displayed to the user in the target access terminal. Further, if the target access terminal user also stores the user name of the access terminal identifier, the target access terminal may further display the user name corresponding to the access terminal.
当接收到所述目标接入终端发送的确认字符时,与所述目标IP地址对应的目标接入终端建立通信连接。When receiving the acknowledgement character sent by the target access terminal, the target access terminal corresponding to the target IP address establishes a communication connection.
具体的,确认字符可以是目标接入终端接收到用户输入的接收通信指令之后发送的ACK确认字符,代表目标接入终端已经接收到连接请求,并且同意该连接请求。Specifically, the confirmation character may be an ACK confirmation character sent by the target access terminal after receiving the received communication instruction input by the user, indicating that the target access terminal has received the connection request, and agrees to the connection request.
在可选实施例中,当接入终端接收到确认字符后,就可以与目标IP地址对应的目标接入终端建立基于IP的通信连接,接入终端与目标接入终端之间可以双向传输语音或视频信息,双方对接收到的语音或视频信息进行解码即可获取信息内容。In an optional embodiment, after the access terminal receives the acknowledgment character, the IP address-based communication connection can be established with the target access terminal corresponding to the target IP address, and the voice can be transmitted in both directions between the access terminal and the target access terminal. Or video information, the two sides can decode the received voice or video information to obtain the information content.
可选的,该方法还包括:Optionally, the method further includes:
将接入信息发送给所述网络终端,所述接入信息包括本端的IP地址以及接入终端标识,以使所述网络终端在检测到所述IP映射表中所述接入终端的IP地址对应的接入终端标识与所述接入信息中的接入终端标识不一致时,将所述IP映射表中所述接入终端的IP地址对应的接入终端标识更新为所述接入信息中的接入终端标识。Sending the access information to the network terminal, where the access information includes an IP address of the local end and an access terminal identifier, so that the network terminal detects the IP address of the access terminal in the IP mapping table. When the corresponding access terminal identifier is inconsistent with the access terminal identifier in the access information, the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table is updated to the access information. Access terminal identity.
具体的,接入信息可以是网络终端定时或者接收到用户指令时向各个接入终端发出接入信息的获取请求后,接入终端发送给网络终端的;也可以是接入终端定时或者接收到用户指令时向网络终端发送的;还可以是接入终端自动检测到用户修改了接入信息中的内容后触发的向网络终端发送接入信息的操作,这里不作具体限定。Specifically, the access information may be sent by the access terminal to the network terminal after the network terminal periodically or when receiving the user request, and the access terminal sends the access request to the access terminal; or the access terminal may be received or received. When the user instructs the transmission to the network terminal, the access terminal automatically detects that the user has modified the content in the access information and then sends the access information to the network terminal, which is not specifically limited.
在可选实施例中,网络终端在接收到接入终端发送的接入信息后,可以在IP映射表中查找接入信息中的接入终端的IP地址所对应的接入终端标识,对比IP映射表中对应的接入终端标识与接入信息中的接入终端标识,判断两者是否是一致的。若网络终端检测到IP映射表中对应的接入终端标识与接入信息中的接入终端标识不一致,则将IP映射表中对应的接入终端标识替换为接入信息中的接入终端标识。In an optional embodiment, after receiving the access information sent by the access terminal, the network terminal may look up the access terminal identifier corresponding to the IP address of the access terminal in the access information in the IP mapping table, and compare the IP address. The corresponding access terminal identifier in the mapping table and the access terminal identifier in the access information are used to determine whether the two are consistent. If the network terminal detects that the corresponding access terminal identifier in the IP mapping table is inconsistent with the access terminal identifier in the access information, replace the corresponding access terminal identifier in the IP mapping table with the access terminal identifier in the access information. .
例如,用户在接入终端中将原本为“6001”的接入终端标识更改为了“6004”,则网络终端接收到的接入信息即为“6004-183.33.33.1”,网络终端接收到接入信息后,通过IP映射表查询到183.33.33.1对应的接入终端标识为6001,对比后可以确定IP地址为183.33.33.1的接入终端在IP映射表中的接入终端标识6001与接入信息中的入终端标识6004不一致,则将IP映射表中的183.33.33.1对应的接入终端标识从6001替换为6004。For example, if the user changes the access terminal identity of the original "6001" to "6004" in the access terminal, the access information received by the network terminal is "6004-183.33.33.1", and the network terminal receives the access. After the information is obtained, the access terminal identifier corresponding to 183.33.33.1 is 6001 through the IP mapping table, and the access terminal identifier 6001 and the access information of the access terminal with the IP address 183.33.33.1 in the IP mapping table can be determined. If the incoming terminal identifier 6004 is inconsistent, the access terminal identifier corresponding to 183.33.33.1 in the IP mapping table is replaced from 6001 to 6004.
接收所述网络终端发送的更新后的所述IP映射表。Receiving the updated IP mapping table sent by the network terminal.
具体的,网络终端将IP映射表更新完毕后,会将新的IP映射表发送给无线局域网接入点的接入终端,接入终端接收到更新后的IP映射表后,其他接入终端就可以与更改了接入终端标识的接入终端进行通信。Specifically, after the network terminal updates the IP mapping table, the new IP mapping table is sent to the access terminal of the WLAN access point, and after the access terminal receives the updated IP mapping table, the other access terminals It is possible to communicate with an access terminal that has changed the access terminal identity.
本发明实施例通过获取接入无线局域网接入点的接入终端标识,向所述接入终端标识分配IP地址,建立IP映射表,所述IP映射表包含所述接入终端标识以及所述接入终端标识对应的IP地址,将所述IP映射表发送给接入所述无线局域网接入点的接入终端,以使所述接入终端接收到用户输入的针对目标接入终端标识的通信指令时,根据所述IP映射表获取目标接入终端标识对应的目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接,可以使接入同一无线局域网接入点的所有移动终端之间实现通信,从而提高了内部通信的便捷性以及通信效率。另外,本发明可选实施例还增加了网络终端与接入终端对IP映射表的双向更新,提高了通信的准确性。The embodiment of the present invention obtains an IP address by assigning an IP address to the access terminal identifier by acquiring an access terminal identifier of the access point of the wireless local area network, where the IP mapping table includes the access terminal identifier and the And the access terminal identifier is sent to the access terminal that accesses the wireless local area network access point, so that the access terminal receives the identifier input by the user for the target access terminal identifier. Obtaining a target IP address corresponding to the target access terminal identifier according to the IP mapping table, establishing a communication connection with the target access terminal corresponding to the target IP address, and enabling access to all the same WLAN access point Communication is realized between mobile terminals, thereby improving the convenience of internal communication and communication efficiency. In addition, the optional embodiment of the present invention further increases the bidirectional update of the IP mapping table between the network terminal and the access terminal, and improves the accuracy of the communication.
图3是本发明实施例中一种无线局域网通信方法的交互流程示意图,如图所示所述流程包括:3 is a schematic diagram of an interaction process of a wireless local area network communication method according to an embodiment of the present invention, where the process includes:
步骤S301,网络终端获取接入无线局域网接入点的接入终端标识。Step S301, the network terminal acquires an access terminal identifier for accessing the wireless local area network access point.
在本实施例中,由于接入终端与无线局域网接入点保持的连接关系,网络终端可以获取接入所有接入无线局域网的接入终端标识。例如,设定接入终端标识为接入终端的内部号码,设第一接入终端的内部号码为6001,第二接入终端的内部号码为6002,则网络终端可以获取到第一接入终端标识6001以及第二接入终端标识6002。In this embodiment, the network terminal can obtain the access terminal identifier of all accessing the wireless local area network due to the connection relationship between the access terminal and the wireless local area network access point. For example, if the access terminal is identified as the internal number of the access terminal, the internal number of the first access terminal is 6001, and the internal number of the second access terminal is 6002, the network terminal can obtain the first access terminal. The identifier 6001 and the second access terminal identifier 6002.
步骤S302,网络终端向接入终端标识分配IP地址,建立IP映射表, IP映射表包含接入终端标识以及接入终端标识对应的IP地址。Step S302: The network terminal allocates an IP address to the access terminal identifier, and establishes an IP mapping table, where the IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier.
在本实施例中,网络终端在获取到接入无线局域网接入点的所有接入终端标识后,可以向每个接入终端标识分配一个IP地址,也即向每个接入终端分配一个IP地址,根据接入终端标识与分配的IP地址之间的对应关系,网络终端可以建立IP映射表,IP映射表中包含了网络终端获取到的各接入终端标识以及各接入终端标识对应的IP地址。也就是说,通过IP映射表,建立了接入终端标识与其对应的IP地址的对应关系,通过IP地址可以查找到对应的接入终端标识,通过接入终端标识也可以查找到对应的IP地址。In this embodiment, after obtaining the access identifiers of all the access terminals of the wireless local area network access point, the network terminal may assign an IP address to each access terminal identifier, that is, assign an IP address to each access terminal. The address, according to the correspondence between the access terminal identifier and the assigned IP address, the network terminal may establish an IP mapping table, where the IP mapping table includes the access terminal identifiers obtained by the network terminal and the corresponding access terminal identifiers. IP address. That is to say, the mapping relationship between the access terminal identifier and its corresponding IP address is established through the IP mapping table, and the corresponding access terminal identifier can be found through the IP address, and the corresponding IP address can also be found through the access terminal identifier. .
例如,终端获取到第一接入终端标识6001以及第二接入终端标识6002,则可以向6001分配一个对应的IP地址183.33.33.1,向6002分配一个对应的IP地址183.33.33.2,从而可以建立包含6001和6002及其对应的IP地址的IP映射表。For example, if the terminal acquires the first access terminal identifier 6001 and the second access terminal identifier 6002, the terminal may assign a corresponding IP address 183.33.33.1 to the 6001, and assign a corresponding IP address 183.33.33.2 to the 6002, so that the terminal can be established. An IP mapping table containing 6001 and 6002 and their corresponding IP addresses.
步骤S303,网络终端将IP映射表发送给接入无线局域网接入点的接入终端。Step S303, the network terminal sends the IP mapping table to the access terminal accessing the wireless local area network access point.
具体的,网络终端建立了IP映射表之后,就可以将该IP映射表发送给接入无线局域网接入点的所有接入终端。接入终端接收到网络终端发送的IP映射表后,就可以获取到网络终端给接入终端自身分配的IP地址,同时也可以获取到其他与接入终端接入同一无线局域网接入点的其他接入终端标识对应的IP地址。例如IP映射表中可以包括“6001-183.33.33.1”以及“6002-183.33.33.2”,分别代表第一接入终端标识以及对应的IP地址和第二接入终端以及对应的IP地址。Specifically, after the network terminal establishes the IP mapping table, the IP mapping table may be sent to all access terminals that access the wireless local area network access point. After receiving the IP mapping table sent by the network terminal, the access terminal may obtain the IP address assigned by the network terminal to the access terminal itself, and may also acquire other other accessing the same wireless local area network access point with the access terminal. The IP address corresponding to the access terminal identifier. For example, the IP mapping table may include “6001-183.33.33.1” and “6002-183.33.33.2”, respectively representing the first access terminal identifier and the corresponding IP address and the second access terminal and the corresponding IP address.
步骤S304,接入终端接收用户输入的针对目标接入终端标识的通信指令。Step S304, the access terminal receives a communication instruction input by the user for the target access terminal identifier.
具体的,目标接入终端标识可以是接入无线局域网接入点的任一接入终端标识,通信指令可以是用户针对目标接入终端标识进行的双击、长按、按下拨打按键灯操作,这里不作具体限定。例如,用户在接入终端中输入为6001的目标终端标识,并且按下拨号键,则接入终端则接收到了针对目标接入终端标识为6001的通信指令。Specifically, the target access terminal identifier may be any access terminal identifier that accesses the wireless local area network access point, and the communication instruction may be a double click, long press, and press of a button light operation performed by the user for the target access terminal identifier. This is not specifically limited. For example, if the user inputs the target terminal identifier of 6001 in the access terminal and presses the dial key, the access terminal receives the communication command for the target access terminal identifier 6001.
步骤S305,接入终端根据IP映射表,查找目标接入终端标识对应的目标IP地址。Step S305, the access terminal searches for a target IP address corresponding to the target access terminal identifier according to the IP mapping table.
具体的,接入终端通过IP映射表可以查找到与目标终端标识对应的目标IP地址。例如,用户输入的目标接入终端标识为6001,此时接入终端可以查询到IP映射表中6001所对应的IP地址为183.33.33.1。Specifically, the access terminal can find the target IP address corresponding to the target terminal identifier through the IP mapping table. For example, the target access terminal identifier entered by the user is 6001. At this time, the access terminal can query the IP address corresponding to 6001 in the IP mapping table to be 183.33.33.1.
步骤S306,接入终端根据目标IP地址,向目标IP地址对应的目标接入终端发送连接请求。Step S306, the access terminal sends a connection request to the target access terminal corresponding to the target IP address according to the target IP address.
具体的,接入终端可以向目标接入终端发送基于IP地址的Socket连接请求,其中,Socket连接请求中可以包括接入终端的接入终端标识以及IP地址。目标接入终端接收到连接请求后,则可以获取到连接请求的来源,进而可以在目标接入终端中显示给用户。进一步地,如果目标接入终端用户还相应的存储了接入终端标识的用户姓名,则目标接入终端还可以进一步显示接入终端对应的用户姓名。Specifically, the access terminal may send an IP address-based Socket connection request to the target access terminal, where the Socket connection request may include an access terminal identifier and an IP address of the access terminal. After receiving the connection request, the target access terminal can obtain the source of the connection request, and then can be displayed to the user in the target access terminal. Further, if the target access terminal user also stores the user name of the access terminal identifier, the target access terminal may further display the user name corresponding to the access terminal.
步骤S307,接入终端接收目标接入终端发送的确认字符。Step S307, the access terminal receives the confirmation character sent by the target access terminal.
具体的,确认字符可以是目标接入终端接收到用户输入的接收通信指令之后发送的ACK确认字符,代表目标接入终端已经接收到连接请求,并且同意该连接请求。Specifically, the confirmation character may be an ACK confirmation character sent by the target access terminal after receiving the received communication instruction input by the user, indicating that the target access terminal has received the connection request, and agrees to the connection request.
步骤S308,接入终端与目标IP地址对应的目标接入终端建立通信连接。Step S308, the access terminal establishes a communication connection with the target access terminal corresponding to the target IP address.
在本实施例中,当接入终端接收到确认字符后,就可以与目标IP地址对应的目标接入终端建立基于IP的通信连接,接入终端与目标接入终端之间可以双向传输语音或视频信息,双方对接收到的语音或视频信息进行解码即可获取信息内容。In this embodiment, after the access terminal receives the acknowledgment character, the IP access-based communication connection can be established with the target access terminal corresponding to the target IP address, and the voice can be transmitted in both directions between the access terminal and the target access terminal. Video information, both parties can obtain the information content by decoding the received voice or video information.
本发明实施例通过获取接入无线局域网接入点的接入终端标识,向所述接入终端标识分配IP地址,建立IP映射表,所述IP映射表包含所述接入终端标识以及所述接入终端标识对应的IP地址,将所述IP映射表发送给接入所述无线局域网接入点的接入终端,以使所述接入终端接收到用户输入的针对目标接入终端标识的通信指令时,根据所述IP映射表获取目标接入终端标识对应的目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接,可以使接入同一无线局域网接入点的所有移动终端之间实现通信,从而提高了内部通信的便捷性以及通信效率。The embodiment of the present invention obtains an IP address by assigning an IP address to the access terminal identifier by acquiring an access terminal identifier of the access point of the wireless local area network, where the IP mapping table includes the access terminal identifier and the And the access terminal identifier is sent to the access terminal that accesses the wireless local area network access point, so that the access terminal receives the identifier input by the user for the target access terminal identifier. Obtaining a target IP address corresponding to the target access terminal identifier according to the IP mapping table, establishing a communication connection with the target access terminal corresponding to the target IP address, and enabling access to all the same WLAN access point Communication is realized between mobile terminals, thereby improving the convenience of internal communication and communication efficiency.
图4是本发明实施例中一种网络终端的组成结构示意图。如图所示所述终端包括:FIG. 4 is a schematic structural diagram of a network terminal according to an embodiment of the present invention. The terminal as shown in the figure includes:
获取模块410,设置为获取接入所述无线局域网接入点的接入终端标识。The obtaining module 410 is configured to obtain an access terminal identifier that accesses the WLAN access point.
具体的,接入终端标识是识别接入终端的一种标识,可以是接入终端的名称、号码、身份码等,例如IMEI(International Mobile Equipment Identity,国际移动设备身份码)、电话号码、自定义终端名称等等,这里不作具体限定。需要说明的是,每个接入终端的接入终端标识是在该无线局域网中唯一的。这里,接入终端可以是具备无线接入功能和通信功能的移动终端,例如手机。Specifically, the access terminal identifier is an identifier that identifies the access terminal, and may be a name, a number, an identity code, and the like of the access terminal, such as an IMEI (International Mobile Equipment Identity), a phone number, and a self. The terminal name and the like are defined, and are not specifically limited herein. It should be noted that the access terminal identifier of each access terminal is unique in the wireless local area network. Here, the access terminal may be a mobile terminal having a wireless access function and a communication function, such as a mobile phone.
在本实施例中,由于接入终端与无线局域网接入点保持的连接关系,获取模块410可以获取接入所有接入无线局域网的接入终端标识。例如,设定接入终端标识为接入终端的内部号码,设第一接入终端的内部号码为6001,第二接入终端的内部号码为6002,则获取模块410可以获取到第一接入终端标识6001以及第二接入终端标识6002。In this embodiment, the obtaining module 410 can obtain the access terminal identifier of all accessing the wireless local area network, because the access terminal maintains the connection relationship with the wireless local area network access point. For example, if the access terminal identifier is the internal number of the access terminal, the internal number of the first access terminal is 6001, and the internal number of the second access terminal is 6002, the acquiring module 410 can obtain the first access. The terminal identifier 6001 and the second access terminal identifier 6002.
建表模块420,设置为向所述接入终端标识分配IP地址,建立IP映射表,所述IP映射表包含所述接入终端标识以及所述接入终端标识对应的IP地址。The table construction module 420 is configured to allocate an IP address to the access terminal identifier, and establish an IP mapping table, where the IP mapping table includes the access terminal identifier and an IP address corresponding to the access terminal identifier.
具体的,IP映射表是反映接入终端标识与IP地址之间对应关系的映射表。Specifically, the IP mapping table is a mapping table that reflects the correspondence between the access terminal identifier and the IP address.
在本实施例中,在获取到接入无线局域网接入点的所有接入终端标识后,建表模块420可以向每个接入终端标识分配一个IP地址,也即向每个接入终端分配一个IP地址,根据接入终端标识与分配的IP地址之间的对应关系,建表模块420可以建立IP映射表,IP映射表中包含了获取模块410获取到的各接入终端标识以及各接入终端标识对应的IP地址。也就是说,通过IP映射表,建立了接入终端标识与其对应的IP地址的对应关系,通过IP地址可以查找到对应的接入终端标识,通过接入终端标识也可以查找到对应的IP地址。In this embodiment, after obtaining all the access terminal identifiers of the access WLAN access point, the building form module 420 may assign an IP address to each access terminal identifier, that is, assign each access terminal. An IP address, according to the correspondence between the access terminal identifier and the assigned IP address, the table construction module 420 can establish an IP mapping table, where the IP mapping table includes the access terminal identifiers obtained by the obtaining module 410 and the connections. Enter the IP address corresponding to the terminal ID. That is to say, the mapping relationship between the access terminal identifier and its corresponding IP address is established through the IP mapping table, and the corresponding access terminal identifier can be found through the IP address, and the corresponding IP address can also be found through the access terminal identifier. .
例如,获取模块410获取到第一接入终端标识6001以及第二接入终端标识6002,则建表模块420可以向6001分配一个对应的IP地址183.33.33.1,向6002分配一个对应的IP地址183.33.33.2,从而可以建立包含6001和6002及其对应的IP地址的IP映射表。For example, the obtaining module 410 obtains the first access terminal identifier 6001 and the second access terminal identifier 6002, and the table building module 420 can allocate a corresponding IP address 183.33.33.1 to the 6001 and assign a corresponding IP address to the 6002. .33.2, so that an IP mapping table containing 6001 and 6002 and their corresponding IP addresses can be established.
第一发送模块430,设置为将所述IP映射表发送给接入所述无线局域网接入点的接入终端,以使所述接入终端接收到用户输入的针对目标接入终端标识的通信指令时,根据所述IP映射表获取目标接入终端标识对应的目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接。The first sending module 430 is configured to send the IP mapping table to an access terminal that accesses the wireless local area network access point, so that the access terminal receives the communication input by the user for the target access terminal identifier. And acquiring, according to the IP mapping table, a target IP address corresponding to the target access terminal identifier, and establishing a communication connection with the target access terminal corresponding to the target IP address.
具体的,建立了IP映射表之后,第一发送模块430就可以将该IP映射表发送给接入无线局域网接入点的所有接入终端。当接入终端接收到用户输入的针对目标接入终端标识的通信指令时,可以查询接收到的IP映射表中目标接入终端标识对应的目标IP地址,通过目标IP地址,向目标接入终端发送连接请求,在目标接入终端接受请求之后,与目标接入终端建立通信连接。Specifically, after the IP mapping table is established, the first sending module 430 may send the IP mapping table to all access terminals accessing the WLAN access point. When the access terminal receives the communication instruction for the target access terminal identifier input by the user, the access terminal may query the target IP address corresponding to the target access terminal identifier in the received IP mapping table, and reach the target access terminal by using the target IP address. A connection request is sent, and after the target access terminal accepts the request, a communication connection is established with the target access terminal.
需要说明的是,目标接入终端标识可以是接入无线局域网接入点的任一接入终端标识,即无线局域网接入点的接入终端之间可以互相通信。针对目标接入终端标识的通信指令可以是用户对目标接入终端标识进行的双击、长按、按下拨打按键等操作,这里不作具体限定。It should be noted that the target access terminal identifier may be any access terminal identifier that accesses the wireless local area network access point, that is, the access terminals of the wireless local area network access point may communicate with each other. The communication command for the target access terminal identifier may be a double click, a long press, or a press of a button for the target access terminal identifier, and is not specifically limited herein.
例如,第一发送模块430将IP映射表发送给接入无线局域网接入点的所有接入终端后,接入终端接收到针对6001的通信指令,此时接入终端可以查询到IP映射表中6001所对应的IP地址为183.33.33.1,则接入终端可以发送基于183.33.33.1IP地址的Socket连接请求,目标接入终端接受请求之后可以返回ACK确认字符,接入终端接收到确认字符后就可以与目标IP地址对应的目标接入终端建立通信连接,即进行通话。For example, after the first sending module 430 sends the IP mapping table to all access terminals accessing the wireless local area network access point, the access terminal receives the communication instruction for 6001, and the access terminal can query the IP mapping table. The IP address corresponding to 6001 is 183.33.33.1, and the access terminal can send a Socket connection request based on the 183.33.33.1 IP address. After receiving the request, the target access terminal can return an ACK confirmation character, and the access terminal receives the confirmation character. A communication connection can be established with the target access terminal corresponding to the target IP address, that is, the call is made.
第一更新模块440,设置为当检测到新增接入终端接入所述无线局域网接入点时,更新所述IP映射表。The first update module 440 is configured to update the IP mapping table when detecting that the newly added access terminal accesses the wireless local area network access point.
具体的,检测到有新增接入终端接入无线局域网接入点时,第一更新模块440可以获取新增接入终端的接入终端标识,并向新增接入终端的接入终端标识分配IP地址,此时无线局域网中的接入终端增加了,则第一更新模块440将新增接入终端的接入终端标识和对应的IP地址增加到原有的IP映射表中形成更新后的IP映射表。Specifically, when detecting that a new access terminal accesses the WLAN access point, the first update module 440 may obtain the access terminal identifier of the newly added access terminal, and identify the access terminal of the newly added access terminal. The IP address is allocated. At this time, the access terminal in the WLAN is added, and the first update module 440 adds the access terminal identifier and the corresponding IP address of the newly added access terminal to the original IP mapping table to form an update. IP mapping table.
例如,检测到新增接入终端接入无线局域网接入点时,第一更新模块440获取到新增接入终端的接入终端标识为6003,网络终端给新增的6003分配一个对应的IP地址183.33.33.3,将6003以及6003对应的IP地址183.33.33.3加入原来仅包含6001和6002及其对应的IP地址的IP映射表中,完成更新IP映射表的操作。For example, when detecting that the new access terminal accesses the WLAN access point, the first update module 440 obtains the access terminal identifier of the newly added access terminal as 6003, and the network terminal allocates a corresponding IP to the newly added 6003. The address 183.33.33.3 adds the IP address 183.33.33.3 corresponding to 6003 and 6003 to the IP mapping table that originally only contains 6001 and 6002 and their corresponding IP addresses, and completes the operation of updating the IP mapping table.
第二发送模块450,设置为将更新后的所述IP映射表发送给所述无线局域网接入点的接入终端。The second sending module 450 is configured to send the updated IP mapping table to the access terminal of the WLAN access point.
具体的,将IP映射表更新完毕后,第二发送模块450将新的IP映射表发送给无线局域网接入点的接入终端,以使接入终端可以与新增的接入终端进行通信。Specifically, after the IP mapping table is updated, the second sending module 450 sends the new IP mapping table to the access terminal of the WLAN access point, so that the access terminal can communicate with the newly added access terminal.
接收模块460,设置为接收所述接入终端发送的接入信息,所述接入信息包括所述接入终端的IP地址以及接入终端标识。The receiving module 460 is configured to receive the access information sent by the access terminal, where the access information includes an IP address of the access terminal and an access terminal identifier.
具体的,接入信息可以是接收模块460定时或者接收到用户指令时向各个接入终端发出接入信息的获取请求后,接入终端发送给接收模块460的;也可以是接入终端定时或者接收到用户指令时向接收模块460发送的;还可以是接入终端自动检测到用户修改了接入信息中的内容后触发的向接收模块460发送接入信息的操作,这里不作具体限定。Specifically, the access information may be sent by the receiving terminal to the receiving module 460 after the receiving module 460 sends the access information to the access terminal when receiving the user command, or the access terminal may be the timed or The operation is sent to the receiving module 460 when the user command is received; the access terminal may automatically detect the operation of sending the access information to the receiving module 460 triggered by the user after modifying the content in the access information, which is not specifically limited herein.
检测模块470,设置为检测在所述IP映射表中所述接入终端的IP地址对应的接入终端标识与接收到的所述接入信息中的接入终端标识是否一致。The detecting module 470 is configured to detect whether the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table is consistent with the received access terminal identifier in the received access information.
具体的,在接收到接入终端发送的接入信息后,检测模块470可以在IP映射表中查找接入信息中的接入终端的IP地址所对应的接入终端标识,对比IP映射表中对应的接入终端标识与接入信息中的接入终端标识,判断两者是否是一致的。Specifically, after receiving the access information sent by the access terminal, the detecting module 470 may look up the access terminal identifier corresponding to the IP address of the access terminal in the access information in the IP mapping table, and compare the IP mapping table. Corresponding access terminal identifiers and access terminal identifiers in the access information determine whether the two are consistent.
第二更新模块480,设置为检测到接入终端标识不一致时,将所述IP映射表中所述接入终端的IP地址对应的接入终端标识更新为接收到的所述接入信息中的接入终端标识。The second update module 480 is configured to: when the access terminal identifier is inconsistent, update the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table to the received access information. Access terminal identity.
具体的,若检测到IP映射表中对应的接入终端标识与接入信息中的接入终端标识不一致,第二更新模块480则将IP映射表中对应的接入终端标识替换为接入信息中的接入终端标识。Specifically, if it is detected that the corresponding access terminal identifier in the IP mapping table is inconsistent with the access terminal identifier in the access information, the second update module 480 replaces the corresponding access terminal identifier in the IP mapping table with the access information. Access terminal identity in .
例如,用户在接入终端中将原本为“6001”的接入终端标识更改为了“6004”,则接收模块460接收到的接入信息即为“6004-183.33.33.1”,接收到接入信息后,检测模块470通过IP映射表查询到183.33.33.1对应的接入终端标识为6001,对比后可以确定IP地址为183.33.33.1的接入终端在IP映射表中的接入终端标识6001与接入信息中的入终端标识6004不一致,第二更新模块480则将IP映射表中的183.33.33.1对应的接入终端标识从6001替换为6004。For example, if the user changes the access terminal identifier of the original "6001" to "6004" in the access terminal, the access information received by the receiving module 460 is "6004-183.33.33.1", and the access information is received. After the detection module 470 queries the access terminal identifier corresponding to 183.33.33.1 to be 6001 through the IP mapping table, and compares the access terminal identifier 6001 of the access terminal with the IP address 183.33.33.1 in the IP mapping table. The incoming terminal identifier 6004 in the incoming information is inconsistent, and the second update module 480 replaces the access terminal identifier corresponding to 183.33.33.1 in the IP mapping table from 6001 to 6004.
第三发送模块490,设置为将更新后的所述IP映射表发送给所述无线局域网接入点的接入终端。The third sending module 490 is configured to send the updated IP mapping table to the access terminal of the wireless local area network access point.
具体的,将IP映射表更新完毕后,第三发送模块490将新的IP映射表发送给无线局域网接入点的接入终端,以使接入终端可以与更改了接入终端标识的接入终端进行通信。Specifically, after the IP mapping table is updated, the third sending module 490 sends the new IP mapping table to the access terminal of the WLAN access point, so that the access terminal can change the access of the access terminal identifier. The terminal communicates.
本发明实施例通过获取接入无线局域网接入点的接入终端标识,向所述接入终端标识分配IP地址,建立IP映射表,所述IP映射表包含所述接入终端标识以及所述接入终端标识对应的IP地址,将所述IP映射表发送给接入所述无线局域网接入点的接入终端,以使所述接入终端接收到用户输入的针对目标接入终端标识的通信指令时,根据所述IP映射表获取目标接入终端标识对应的目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接,可以使接入同一无线局域网接入点的所有移动终端之间实现通信,从而提高了内部通信的便捷性以及通信效率。另外,本发明可选实施例还增加了网络终端与接入终端对IP映射表的双向更新,提高了通信的准确性。The embodiment of the present invention obtains an IP address by assigning an IP address to the access terminal identifier by acquiring an access terminal identifier of the access point of the wireless local area network, where the IP mapping table includes the access terminal identifier and the And the access terminal identifier is sent to the access terminal that accesses the wireless local area network access point, so that the access terminal receives the identifier input by the user for the target access terminal identifier. Obtaining a target IP address corresponding to the target access terminal identifier according to the IP mapping table, establishing a communication connection with the target access terminal corresponding to the target IP address, and enabling access to all the same WLAN access point Communication is realized between mobile terminals, thereby improving the convenience of internal communication and communication efficiency. In addition, the optional embodiment of the present invention further increases the bidirectional update of the IP mapping table between the network terminal and the access terminal, and improves the accuracy of the communication.
图5是本发明实施例中一种接入终端的组成结构示意图。如图所示所述终端包括:FIG. 5 is a schematic structural diagram of a structure of an access terminal according to an embodiment of the present invention. The terminal as shown in the figure includes:
接收模块510,设置为接收网络终端发送的IP映射表,所述IP映射表包含接入终端标识以及接入终端标识对应的IP地址。The receiving module 510 is configured to receive an IP mapping table sent by the network terminal, where the IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier.
具体的,IP映射表是反映接入终端标识与IP地址之间对应关系的映射表,包含了接入无线局域网接入点的所有接入终端标识以及对应的IP地址。接收模块510接收到网络终端发送的IP映射表后,就可以获取到网络终端给接入终端自身分配的IP地址,同时也可以获取到其他与接入终端接入同一无线局域网接入点的其他接入终端标识对应的IP地址。例如IP映射表中可以包括“6001-183.33.33.1”以及“6002-183.33.33.2”,分别代表第一接入终端标识以及对应的IP地址和第二接入终端以及对应的IP地址。Specifically, the IP mapping table is a mapping table that reflects the correspondence between the access terminal identifier and the IP address, and includes all access terminal identifiers and corresponding IP addresses that access the wireless local area network access point. After receiving the IP mapping table sent by the network terminal, the receiving module 510 can obtain the IP address assigned by the network terminal to the access terminal itself, and can also acquire other other accessing the same wireless local area network access point with the access terminal. The IP address corresponding to the access terminal identifier. For example, the IP mapping table may include “6001-183.33.33.1” and “6002-183.33.33.2”, respectively representing the first access terminal identifier and the corresponding IP address and the second access terminal and the corresponding IP address.
指令模块520,设置为接收用户输入的针对目标接入终端标识的通信指令。The instruction module 520 is configured to receive a communication instruction entered by the user for the target access terminal identification.
具体的,目标接入终端标识可以是接入无线局域网接入点的任一接入终端标识,通信指令可以是用户针对目标接入终端标识进行的双击、长按、按下拨打按键灯操作,这里不作具体限定。例如,用户在接入终端中输入为6001的目标终端标识,并且按下拨号键,则指令模块520则接收到了针对目标接入终端标识为6001的通信指令。Specifically, the target access terminal identifier may be any access terminal identifier that accesses the wireless local area network access point, and the communication instruction may be a double click, long press, and press of a button light operation performed by the user for the target access terminal identifier. This is not specifically limited. For example, if the user inputs the target terminal identifier of 6001 in the access terminal and presses the dial key, the command module 520 receives the communication instruction for the target access terminal identifier 6001.
查找模块530,设置为根据所述IP映射表,查找所述目标接入终端标识对应的目标IP地址。The searching module 530 is configured to search for a target IP address corresponding to the target access terminal identifier according to the IP mapping table.
具体的,查找模块530通过IP映射表可以查找到与目标终端标识对应的目标IP地址。例如,用户输入的目标接入终端标识为6001,此时查找模块530可以查询到IP映射表中6001所对应的IP地址为183.33.33.1。Specifically, the searching module 530 can find the target IP address corresponding to the target terminal identifier through the IP mapping table. For example, the target access terminal identifier entered by the user is 6001. In this case, the search module 530 can query the IP address corresponding to the 6001 in the IP mapping table to be 183.33.33.1.
通信模块540,设置为根据所述目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接。The communication module 540 is configured to establish a communication connection with the target access terminal corresponding to the target IP address according to the target IP address.
具体的,通过查询到的目标IP地址,通信模块540可以向目标IP地址发送连接请求,目标IP地址对应的目标接入终端若接受该请求,则通信模块540可以与目标加入终端建立通信连接,则无线局域网接入点内的两个接入中就可以实现相互通信。Specifically, the communication module 540 can send a connection request to the target IP address by using the queried target IP address, and if the target access terminal corresponding to the target IP address accepts the request, the communication module 540 can establish a communication connection with the target joining terminal. The two accesses within the WLAN access point can communicate with each other.
在本实施例中,目标接入终端在接入终端发送连接请求之前,可以对网络进行监听,当监听到通信模块540发送的连接请求后,可以根据不同情况进行不同的反馈。只有当通信模块540接收到目标接入终端的确认反馈后,才可以与目标接入终端建立通信连接并进行通信。In this embodiment, the target access terminal may listen to the network before the access terminal sends the connection request, and after listening to the connection request sent by the communication module 540, different feedback may be performed according to different situations. Only when the communication module 540 receives the acknowledgment feedback of the target access terminal, can the communication connection be established and communicated with the target access terminal.
例如,若目标接入终端当前处于通信空闲状态,则检测用户是否触发应答、接听或者通话等接受指令,若触发接受指令,则目标接入终端则可以向通信模块540发送确认消息,进而建立通信连接;若检测到用户长时间未触发接受指令或者出发了拒绝接听的拒绝指令,则目标接入终端可以不对连接请求进行反馈,或者反馈拒绝消息;若目标接入终端当前处于通信状态,则目标接入终端也可以不对连接请求进行反馈,或者反馈繁忙消息。For example, if the target access terminal is currently in a communication idle state, it detects whether the user triggers an acknowledgement, answering, or a call, and if the command is triggered, the target access terminal may send an acknowledgement message to the communication module 540 to establish communication. If the user detects that the user has not triggered the accepting command for a long time or has refused to accept the call, the target access terminal may not feed back the connection request or feed back the reject message; if the target access terminal is currently in communication, the target The access terminal may also not feed back the connection request or feed back a busy message.
所述通信模块540包括:请求单元541和通信单元542,如图6所示,其中:The communication module 540 includes: a requesting unit 541 and a communication unit 542, as shown in FIG. 6, wherein:
请求单元541,设置为根据所述目标IP地址,向所述目标IP地址对应的目标接入终端发送连接请求。The requesting unit 541 is configured to send a connection request to the target access terminal corresponding to the target IP address according to the target IP address.
具体的,请求单元541可以向目标接入终端发送基于IP地址的Socket连接请求,其中,Socket连接请求中可以包括接入终端的接入终端标识以及IP地址。目标接入终端接收到连接请求后,则可以获取到连接请求的来源,进而可以在目标接入终端中显示给用户。进一步地,如果目标接入终端用户还相应的存储了接入终端标识的用户姓名,则目标接入终端还可以进一步显示接入终端对应的用户姓名。Specifically, the requesting unit 541 may send an IP address-based Socket connection request to the target access terminal, where the Socket connection request may include an access terminal identifier and an IP address of the access terminal. After receiving the connection request, the target access terminal can obtain the source of the connection request, and then can be displayed to the user in the target access terminal. Further, if the target access terminal user also stores the user name of the access terminal identifier, the target access terminal may further display the user name corresponding to the access terminal.
通信单元542,设置为当接收到所述目标接入终端发送的确认字符时,与所述目标IP地址对应的目标接入终端建立通信连接。The communication unit 542 is configured to establish a communication connection with the target access terminal corresponding to the target IP address when receiving the acknowledgement character sent by the target access terminal.
具体的,确认字符可以是目标接入终端接收到用户输入的接收通信指令之后发送的ACK确认字符,代表目标接入终端已经接收到连接请求,并且同意该连接请求。Specifically, the confirmation character may be an ACK confirmation character sent by the target access terminal after receiving the received communication instruction input by the user, indicating that the target access terminal has received the connection request, and agrees to the connection request.
在可选实施例中,当通信单元542接收到确认字符后,就可以与目标IP地址对应的目标接入终端建立基于IP的通信连接,通信单元542与目标接入终端之间可以双向传输语音或视频信息,双方对接收到的语音或视频信息进行解码即可获取信息内容。In an optional embodiment, when the communication unit 542 receives the confirmation character, the IP-based communication connection can be established with the target access terminal corresponding to the target IP address, and the communication unit 542 and the target access terminal can transmit the voice in both directions. Or video information, the two sides can decode the received voice or video information to obtain the information content.
发送模块550,设置为将接入信息发送给所述网络终端,所述接入信息包括本端的IP地址以及接入终端标识,以使所述网络终端在检测到所述IP映射表中所述接入终端的IP地址对应的接入终端标识与所述接入信息中的接入终端标识不一致时,将所述IP映射表中所述接入终端的IP地址对应的接入终端标识更新为所述接入信息中的接入终端标识。The sending module 550 is configured to send the access information to the network terminal, where the access information includes an IP address of the local end and an access terminal identifier, so that the network terminal detects the IP mapping table. When the access terminal identifier corresponding to the IP address of the access terminal is different from the access terminal identifier in the access information, the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table is updated to An access terminal identifier in the access information.
具体的,接入信息可以是网络终端定时或者接收到用户指令时向各个接入终端发出接入信息的获取请求后,发送模块550发送给网络终端的;也可以是发送模块550定时或者接收到用户指令时向网络终端发送的;还可以是发送模块550自动检测到用户修改了接入信息中的内容后触发的向网络终端发送接入信息的操作,这里不作具体限定。Specifically, the access information may be sent by the sending module 550 to the network terminal after the network terminal is scheduled to send the access information to the access terminal, and the sending module 550 may be received or received. When the user instructs the transmission to the network terminal, the sending module 550 may automatically detect the operation of sending the access information to the network terminal triggered by the user after modifying the content in the access information, which is not specifically limited herein.
在可选实施例中,网络终端在接收到发送模块550发送的接入信息后,可以在IP映射表中查找接入信息中的接入终端的IP地址所对应的接入终端标识,对比IP映射表中对应的接入终端标识与接入信息中的接入终端标识,判断两者是否是一致的。若网络终端检测到IP映射表中对应的接入终端标识与接入信息中的接入终端标识不一致,则将IP映射表中对应的接入终端标识替换为接入信息中的接入终端标识。In an optional embodiment, after receiving the access information sent by the sending module 550, the network terminal may look up the access terminal identifier corresponding to the IP address of the access terminal in the access information in the IP mapping table, and compare the IP. The corresponding access terminal identifier in the mapping table and the access terminal identifier in the access information are used to determine whether the two are consistent. If the network terminal detects that the corresponding access terminal identifier in the IP mapping table is inconsistent with the access terminal identifier in the access information, replace the corresponding access terminal identifier in the IP mapping table with the access terminal identifier in the access information. .
例如,用户在接入终端中将原本为“6001”的接入终端标识更改为了“6004”,则网络终端接收到的接入信息即为“6004-183.33.33.1”,网络终端接收到接入信息后,通过IP映射表查询到183.33.33.1对应的接入终端标识为6001,对比后可以确定IP地址为183.33.33.1的接入终端在IP映射表中的接入终端标识6001与接入信息中的入终端标识6004不一致,则将IP映射表中的183.33.33.1对应的接入终端标识从6001替换为6004。For example, if the user changes the access terminal identity of the original "6001" to "6004" in the access terminal, the access information received by the network terminal is "6004-183.33.33.1", and the network terminal receives the access. After the information is obtained, the access terminal identifier corresponding to 183.33.33.1 is 6001 through the IP mapping table, and the access terminal identifier 6001 and the access information of the access terminal with the IP address 183.33.33.1 in the IP mapping table can be determined. If the incoming terminal identifier 6004 is inconsistent, the access terminal identifier corresponding to 183.33.33.1 in the IP mapping table is replaced from 6001 to 6004.
更新接收模块560,设置为接收所述网络终端发送的更新后的所述IP映射表。The update receiving module 560 is configured to receive the updated IP mapping table sent by the network terminal.
具体的,网络终端将IP映射表更新完毕后,会将新的IP映射表发送给无线局域网接入点的更新接收模块560,更新接收模块560接收到更新后的IP映射表后,其他接入终端就可以与更改了接入终端标识的接入终端进行通信。Specifically, after the network terminal updates the IP mapping table, the new IP mapping table is sent to the update receiving module 560 of the WLAN access point, and the update receiving module 560 receives the updated IP mapping table, and other accesses are received. The terminal can communicate with the access terminal that has changed the access terminal identity.
本发明实施例通过获取接入无线局域网接入点的接入终端标识,向所述接入终端标识分配IP地址,建立IP映射表,所述IP映射表包含所述接入终端标识以及所述接入终端标识对应的IP地址,将所述IP映射表发送给接入所述无线局域网接入点的接入终端,以使所述接入终端接收到用户输入的针对目标接入终端标识的通信指令时,根据所述IP映射表获取目标接入终端标识对应的目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接,可以使接入同一无线局域网接入点的所有移动终端之间实现通信,从而提高了内部通信的便捷性以及通信效率。另外,本发明可选实施例还增加了网络终端与接入终端对IP映射表的双向更新,提高了通信的准确性。The embodiment of the present invention obtains an IP address by assigning an IP address to the access terminal identifier by acquiring an access terminal identifier of the access point of the wireless local area network, where the IP mapping table includes the access terminal identifier and the And the access terminal identifier is sent to the access terminal that accesses the wireless local area network access point, so that the access terminal receives the identifier input by the user for the target access terminal identifier. Obtaining a target IP address corresponding to the target access terminal identifier according to the IP mapping table, establishing a communication connection with the target access terminal corresponding to the target IP address, and enabling access to all the same WLAN access point Communication is realized between mobile terminals, thereby improving the convenience of internal communication and communication efficiency. In addition, the optional embodiment of the present invention further increases the bidirectional update of the IP mapping table between the network terminal and the access terminal, and improves the accuracy of the communication.
图7是本发明实施例中一种无线局域网通信系统的组成结构示意图。如图所示所述系统包括网络终端10以及接入终端20,其中:FIG. 7 is a schematic structural diagram of a wireless local area network communication system according to an embodiment of the present invention. The system as shown includes a network terminal 10 and an access terminal 20, wherein:
网络终端10,用于获取接入所述无线局域网接入点的接入终端标识;向所述接入终端标识分配IP地址,建立IP映射表,所述IP映射表包含所述接入终端标识以及所述接入终端标识对应的IP地址;将所述IP映射表发送给接入所述无线局域网接入点的接入终端,以使所述接入终端接收到用户输入的针对目标接入终端标识的通信指令时,根据所述IP映射表获取目标接入终端标识对应的目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接。The network terminal 10 is configured to obtain an access terminal identifier that accesses the WLAN access point, allocate an IP address to the access terminal identifier, and establish an IP mapping table, where the IP mapping table includes the access terminal identifier And the IP address corresponding to the access terminal identifier; sending the IP mapping table to an access terminal that accesses the WLAN access point, so that the access terminal receives the target access input by the user And obtaining, by the IP mapping table, a target IP address corresponding to the target access terminal identifier, and establishing a communication connection with the target access terminal corresponding to the target IP address.
接入终端20,用于接收网络终端发送的IP映射表,所述IP映射表包含接入终端标识以及接入终端标识对应的IP地址;接收用户输入的针对目标接入终端标识的通信指令;根据所述IP映射表,查找所述目标接入终端标识对应的目标IP地址;根据所述目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接。The access terminal 20 is configured to receive an IP mapping table sent by the network terminal, where the IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier, and receives a communication instruction that is input by the user for the target access terminal identifier. And searching, according to the IP mapping table, a target IP address corresponding to the target access terminal identifier, and establishing, according to the target IP address, a communication connection with the target access terminal corresponding to the target IP address.
图8是本发明实施例中另一种网络终端的组成结构示意图。如图所示,本发明实施例中的网络终端10可以是不同类型的电子设备,例如:智能手机、平板电脑、掌上电脑以及移动互联网设备、个人数字助理、媒体播放器、智能电视、智能手表、智能眼镜、智能手环等。如图8所示,本发明实施例中的终端10包括:至少一个处理器101,例如CPU,至少一个收发器103,至少一个存储器102。其中,所述处理器101、收发器103、存储器102通过总线系统连接通信。所述存储器102可以是高速RAM存储器,也可以是非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。FIG. 8 is a schematic structural diagram of another network terminal according to an embodiment of the present invention. As shown in the figure, the network terminal 10 in the embodiment of the present invention may be different types of electronic devices, such as: smart phones, tablet computers, handheld computers, and mobile Internet devices, personal digital assistants, media players, smart TVs, smart watches. , smart glasses, smart bracelets, etc. As shown in FIG. 8, the terminal 10 in the embodiment of the present invention includes: at least one processor 101, such as a CPU, at least one transceiver 103, and at least one memory 102. The processor 101, the transceiver 103, and the memory 102 are connected and communicated through a bus system. The memory 102 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
所述存储器102中存储有程序代码,且所述处理器101可通过总线系统,调用所述存储器102中存储的程序代码以执行相关的功能。例如,图4中所述的各个模块(例如,所述获取模块410、所述建表模块420、所述第一发送模块430、所述第一更新模块440、所述第二发送模块450、所述接收模块460、所述检测模块470、所述第二更新模块480、所述第三发送模块490等)是存储在所述存储器102中的程序代码,并由所述处理器101所执行,从而实现所述各个单元的功能以实现无线局域网的通信方法。Program code is stored in the memory 102, and the processor 101 can call the program code stored in the memory 102 to perform related functions through a bus system. For example, each module described in FIG. 4 (for example, the obtaining module 410, the metering module 420, the first sending module 430, the first updating module 440, the second sending module 450, The receiving module 460, the detecting module 470, the second updating module 480, the third sending module 490, and the like) are program codes stored in the memory 102, and are executed by the processor 101. Thereby implementing the functions of the respective units to implement a communication method of the wireless local area network.
具体而言,所述处理器101:获取接入无线局域网接入点的接入终端标识;向所述接入终端标识分配IP地址,建立IP映射表,所述IP映射表包含所述接入终端标识以及所述接入终端标识对应的IP地址;将所述IP映射表发送给接入所述无线局域网接入点的接入终端,以使所述接入终端接收到用户输入的针对目标接入终端标识的通信指令时,根据所述IP映射表获取目标接入终端标识对应的目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接。Specifically, the processor 101: acquires an access terminal identifier of an access WLAN access point; assigns an IP address to the access terminal identifier, and establishes an IP mapping table, where the IP mapping table includes the access a terminal identifier and an IP address corresponding to the access terminal identifier; sending the IP mapping table to an access terminal that accesses the WLAN access point, so that the access terminal receives a target input by a user When the communication instruction of the terminal identifier is accessed, the target IP address corresponding to the target access terminal identifier is obtained according to the IP mapping table, and the target access terminal corresponding to the target IP address establishes a communication connection.
在进一步的实施例中,所述处理器:当检测到新增接入终端接入所述无线局域网接入点时,更新所述IP映射表;将更新后的所述IP映射表发送给所述无线局域网接入点的接入终端。In a further embodiment, the processor: when detecting that the newly added access terminal accesses the wireless local area network access point, updating the IP mapping table; sending the updated IP mapping table to the An access terminal of a wireless local area network access point.
在进一步的实施例中,所述处理器:接收所述接入终端发送的接入信息,所述接入信息包括所述接入终端的IP地址以及接入终端标识;检测在所述IP映射表中所述接入终端的IP地址对应的接入终端标识与接收到的所述接入信息中的接入终端标识是否一致;若不一致,则将所述IP映射表中所述接入终端的IP地址对应的接入终端标识更新为接收到的所述接入信息中的接入终端标识;将更新后的所述IP映射表发送给所述无线局域网接入点的接入终端。In a further embodiment, the processor: receiving access information sent by the access terminal, where the access information includes an IP address of the access terminal and an access terminal identifier; detecting the IP mapping Whether the access terminal identifier corresponding to the IP address of the access terminal in the table is consistent with the received access terminal identifier in the received access information; if not, the access terminal in the IP mapping table is used. The access terminal identifier corresponding to the IP address is updated to the received access terminal identifier in the received access information; and the updated IP mapping table is sent to the access terminal of the wireless local area network access point.
图9是本发明实施例中另一种接入终端的组成结构示意图。如图所示,本发明实施例中的接入终端20可以是不同类型的电子设备,例如:智能手机、平板电脑、掌上电脑以及移动互联网设备、个人数字助理、媒体播放器、智能电视、智能手表、智能眼镜、智能手环等。如图9所示,本发明实施例中的终端20包括:至少一个处理器201,例如CPU,至少一个收发器203,至少一个存储器202。其中,所述处理器201、收发器203、存储器202通过总线系统连接通信。所述存储器202可以是高速RAM存储器,也可以是非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。FIG. 9 is a schematic structural diagram of another access terminal in an embodiment of the present invention. As shown in the figure, the access terminal 20 in the embodiment of the present invention may be different types of electronic devices, such as: smart phones, tablet computers, handheld computers, and mobile Internet devices, personal digital assistants, media players, smart televisions, and smart phones. Watches, smart glasses, smart bracelets, etc. As shown in FIG. 9, the terminal 20 in the embodiment of the present invention includes: at least one processor 201, such as a CPU, at least one transceiver 203, and at least one memory 202. The processor 201, the transceiver 203, and the memory 202 are connected and communicated through a bus system. The memory 202 may be a high speed RAM memory or a non-volatile memory such as at least one disk memory.
所述存储器202中存储有程序代码,且所述处理器201可通过总线系统,调用所述存储器202中存储的程序代码以执行相关的功能。例如,图5、图6中所述的各个模块(例如,所述接收模块510、所述指令模块520、所述查找模块530、所述通信模块540、所述更新接收模块560、所述发送模块550等)是存储在所述存储器202中的程序代码,并由所述处理器201所执行,从而实现所述各个模块的功能以实现无线局域网的通信方法。Program code is stored in the memory 202, and the processor 201 can call the program code stored in the memory 202 to perform related functions through a bus system. For example, the various modules described in FIG. 5 and FIG. 6 (eg, the receiving module 510, the instruction module 520, the lookup module 530, the communication module 540, the update receiving module 560, the sending Module 550, etc.) is program code stored in said memory 202 and executed by said processor 201 to implement the functions of said various modules to implement a wireless local area network communication method.
具体而言,所述处理器201:接收网络终端发送的IP映射表,所述IP映射表包含接入终端标识以及接入终端标识对应的IP地址;接收用户输入的针对目标接入终端标识的通信指令;根据所述IP映射表,查找所述目标接入终端标识对应的目标IP地址;根据所述目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接。Specifically, the processor 201: receiving an IP mapping table sent by the network terminal, where the IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier; and receiving, by the user, the target access terminal identifier a communication command; searching for a target IP address corresponding to the target access terminal identifier according to the IP mapping table; and establishing a communication connection with the target access terminal corresponding to the target IP address according to the target IP address.
在进一步的实施例中,所述处理器201:根据所述目标IP地址,向所述目标IP地址对应的目标接入终端发送连接请求;当接收到所述目标接入终端发送的确认字符时,与所述目标IP地址对应的目标接入终端建立通信连接。In a further embodiment, the processor 201: sends a connection request to the target access terminal corresponding to the target IP address according to the target IP address; when receiving the confirmation character sent by the target access terminal Establishing a communication connection with the target access terminal corresponding to the target IP address.
在进一步的实施例中,将接入信息发送给所述网络终端,所述接入信息包括本端的IP地址以及接入终端标识,以使所述网络终端在检测到所述IP映射表中所述接入终端的IP地址对应的接入终端标识与所述接入信息中的接入终端标识不一致时,将所述IP映射表中所述接入终端的IP地址对应的接入终端标识更新为所述接入信息中的接入终端标识;接收所述网络终端发送的更新后的所述IP映射表。In a further embodiment, the access information is sent to the network terminal, and the access information includes an IP address of the local end and an access terminal identifier, so that the network terminal detects the IP mapping table. When the access terminal identifier corresponding to the IP address of the access terminal is inconsistent with the access terminal identifier in the access information, update the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table. And identifying, by the access terminal in the access information, the updated IP mapping table sent by the network terminal.
本发明实施例通过获取接入无线局域网接入点的接入终端标识,向所述接入终端标识分配IP地址,建立IP映射表,所述IP映射表包含所述接入终端标识以及所述接入终端标识对应的IP地址,将所述IP映射表发送给接入所述无线局域网接入点的接入终端,以使所述接入终端接收到用户输入的针对目标接入终端标识的通信指令时,根据所述IP映射表获取目标接入终端标识对应的目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接,可以使接入同一无线局域网接入点的所有移动终端之间实现通信,从而提高了内部通信的便捷性以及通信效率。The embodiment of the present invention obtains an IP address by assigning an IP address to the access terminal identifier by acquiring an access terminal identifier of the access point of the wireless local area network, where the IP mapping table includes the access terminal identifier and the And the access terminal identifier is sent to the access terminal that accesses the wireless local area network access point, so that the access terminal receives the identifier input by the user for the target access terminal identifier. Obtaining a target IP address corresponding to the target access terminal identifier according to the IP mapping table, establishing a communication connection with the target access terminal corresponding to the target IP address, and enabling access to all the same WLAN access point Communication is realized between mobile terminals, thereby improving the convenience of internal communication and communication efficiency.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above is only the preferred embodiment of the present invention, and the scope of the present invention is not limited thereto, and thus equivalent changes made in the claims of the present invention are still within the scope of the present invention.

Claims (13)

  1. 一种无线局域网通信方法,其特征在于,所述方法包括:A wireless local area network communication method, characterized in that the method comprises:
    获取接入无线局域网接入点的接入终端标识;Obtaining an access terminal identifier for accessing a wireless local area network access point;
    向所述接入终端标识分配IP地址,建立IP映射表,所述IP映射表包含所述接入终端标识以及所述接入终端标识对应的IP地址;Assigning an IP address to the access terminal identifier, and establishing an IP mapping table, where the IP mapping table includes the access terminal identifier and an IP address corresponding to the access terminal identifier;
    将所述IP映射表发送给接入所述无线局域网接入点的接入终端,以使所述接入终端接收到用户输入的针对目标接入终端标识的通信指令时,根据所述IP映射表获取目标接入终端标识对应的目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接。Transmitting the IP mapping table to an access terminal that accesses the WLAN access point, so that when the access terminal receives a communication instruction input by the user for the target access terminal identifier, according to the IP mapping The table obtains a target IP address corresponding to the target access terminal identifier, and establishes a communication connection with the target access terminal corresponding to the target IP address.
  2. 如权利要求1所述的无线局域网通信方法,其特征在于,所述方法还包括:The WLAN communication method of claim 1, wherein the method further comprises:
    当检测到新增接入终端接入所述无线局域网接入点时,更新所述IP映射表;Updating the IP mapping table when detecting that the newly added access terminal accesses the wireless local area network access point;
    将更新后的所述IP映射表发送给所述无线局域网接入点的接入终端。Transmitting the updated IP mapping table to an access terminal of the wireless local area network access point.
  3. 如权利要求1所述的无线局域网通信方法,其特征在于,所述方法还包括:The WLAN communication method of claim 1, wherein the method further comprises:
    接收所述接入终端发送的接入信息,所述接入信息包括所述接入终端的IP地址以及接入终端标识;Receiving access information sent by the access terminal, where the access information includes an IP address of the access terminal and an access terminal identifier;
    检测在所述IP映射表中所述接入终端的IP地址对应的接入终端标识与接收到的所述接入信息中的接入终端标识是否一致;Detecting whether the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table is consistent with the received access terminal identifier in the received access information;
    若不一致,则将所述IP映射表中所述接入终端的IP地址对应的接入终端标识更新为接收到的所述接入信息中的接入终端标识;If not, the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table is updated to the received access terminal identifier in the received access information;
    将更新后的所述IP映射表发送给所述无线局域网接入点的接入终端。Transmitting the updated IP mapping table to an access terminal of the wireless local area network access point.
  4. 一种无线局域网通信方法,其特征在于,所述方法包括:A wireless local area network communication method, characterized in that the method comprises:
    接收网络终端发送的IP映射表,所述IP映射表包含接入终端标识以及接入终端标识对应的IP地址;Receiving an IP mapping table sent by the network terminal, where the IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier;
    接收用户输入的针对目标接入终端标识的通信指令;Receiving a communication instruction input by the user for the target access terminal identifier;
    根据所述IP映射表,查找所述目标接入终端标识对应的目标IP地址;Searching, according to the IP mapping table, a target IP address corresponding to the target access terminal identifier;
    根据所述目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接。Establishing a communication connection with the target access terminal corresponding to the target IP address according to the target IP address.
  5. 如权利要求4所述的无线局域网通信方法,其特征在于,所述根据所述目标IP地址,与所述目标IP地址对应的目标接入终端建立连接包括:The WLAN communication method of claim 4, wherein the establishing a connection with the target access terminal corresponding to the target IP address according to the target IP address comprises:
    根据所述目标IP地址,向所述目标IP地址对应的目标接入终端发送连接请求;Sending a connection request to the target access terminal corresponding to the target IP address according to the target IP address;
    当接收到所述目标接入终端发送的确认字符时,与所述目标IP地址对应的目标接入终端建立通信连接。When receiving the acknowledgement character sent by the target access terminal, the target access terminal corresponding to the target IP address establishes a communication connection.
  6. 如权利要求4所述的无线局域网通信方法,其特征在于,所述方法还包括:The WLAN communication method of claim 4, wherein the method further comprises:
    将接入信息发送给所述网络终端,所述接入信息包括本端的IP地址以及接入终端标识,以使所述网络终端在检测到所述IP映射表中所述接入终端的IP地址对应的接入终端标识与所述接入信息中的接入终端标识不一致时,将所述IP映射表中所述接入终端的IP地址对应的接入终端标识更新为所述接入信息中的接入终端标识;Sending the access information to the network terminal, where the access information includes an IP address of the local end and an access terminal identifier, so that the network terminal detects the IP address of the access terminal in the IP mapping table. When the corresponding access terminal identifier is inconsistent with the access terminal identifier in the access information, the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table is updated to the access information. Access terminal identity;
    接收所述网络终端发送的更新后的所述IP映射表。Receiving the updated IP mapping table sent by the network terminal.
  7. 一种网络终端,其特征在于,所述终端包括:A network terminal, where the terminal includes:
    获取模块,设置为获取接入无线局域网接入点的接入终端标识;Obtaining a module, configured to obtain an access terminal identifier for accessing a wireless local area network access point;
    建表模块,设置为向所述接入终端标识分配IP地址,建立IP映射表,所述IP映射表包含所述接入终端标识以及所述接入终端标识对应的IP地址;a table building module, configured to allocate an IP address to the access terminal identifier, and establish an IP mapping table, where the IP mapping table includes the access terminal identifier and an IP address corresponding to the access terminal identifier;
    第一发送模块,设置为将所述IP映射表发送给接入所述无线局域网接入点的接入终端,以使所述接入终端接收到用户输入的针对目标接入终端标识的通信指令时,根据所述IP映射表获取目标接入终端标识对应的目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接。a first sending module, configured to send the IP mapping table to an access terminal that accesses the wireless local area network access point, so that the access terminal receives a communication instruction that is input by the user for the target access terminal identifier And acquiring, by the IP mapping table, a target IP address corresponding to the target access terminal identifier, and establishing a communication connection with the target access terminal corresponding to the target IP address.
  8. 如权利要求7所述的网络终端,其特征在于,所述终端还包括:The network terminal according to claim 7, wherein the terminal further comprises:
    第一更新模块,设置为当检测到新增接入终端接入所述无线局域网接入点时,更新所述IP映射表;The first update module is configured to update the IP mapping table when detecting that the newly added access terminal accesses the wireless local area network access point;
    第二发送模块,设置为将更新后的所述IP映射表发送给所述无线局域网接入点的接入终端。The second sending module is configured to send the updated IP mapping table to the access terminal of the wireless local area network access point.
  9. 如权利要求7所述的网络终端,其特征在于,所述终端还包括:The network terminal according to claim 7, wherein the terminal further comprises:
    接收模块,设置为接收所述接入终端发送的接入信息,所述接入信息包括所述接入终端的IP地址以及接入终端标识;a receiving module, configured to receive access information sent by the access terminal, where the access information includes an IP address of the access terminal and an access terminal identifier;
    检测模块,设置为检测在所述IP映射表中所述接入终端的IP地址对应的接入终端标识与接收到的所述接入信息中的接入终端标识是否一致;a detecting module, configured to detect whether an access terminal identifier corresponding to an IP address of the access terminal in the IP mapping table is consistent with an received access terminal identifier in the received access information;
    第二更新模块,设置为检测到接入终端标识不一致时,将所述IP映射表中所述接入终端的IP地址对应的接入终端标识更新为接收到的所述接入信息中的接入终端标识;a second update module, configured to: when the access terminal identifier is inconsistent, update the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table to the received access information Enter the terminal identifier;
    第三发送模块,设置为将更新后的所述IP映射表发送给所述无线局域网接入点的接入终端。The third sending module is configured to send the updated IP mapping table to the access terminal of the WLAN access point.
  10. 一种接入终端,其特征在于,所述终端包括:An access terminal, where the terminal includes:
    接收模块,设置为接收网络终端发送的IP映射表,所述IP映射表包含接入终端标识以及接入终端标识对应的IP地址;a receiving module, configured to receive an IP mapping table sent by the network terminal, where the IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier;
    指令模块,设置为接收用户输入的针对目标接入终端标识的通信指令;An instruction module, configured to receive a communication instruction input by the user for the target access terminal identifier;
    查找模块,设置为根据所述IP映射表,查找所述目标接入终端标识对应的目标IP地址;a locating module, configured to search for a target IP address corresponding to the target access terminal identifier according to the IP mapping table;
    通信模块,设置为根据所述目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接。And a communication module, configured to establish a communication connection with the target access terminal corresponding to the target IP address according to the target IP address.
  11. 如权利要求10所述的接入终端,其特征在于,所述通信模块包括:The access terminal of claim 10, wherein the communication module comprises:
    请求单元,设置为根据所述目标IP地址,向所述目标IP地址对应的目标接入终端发送连接请求;a requesting unit, configured to send a connection request to the target access terminal corresponding to the target IP address according to the target IP address;
    通信单元,设置为当接收到所述目标接入终端发送的确认字符时,与所述目标IP地址对应的目标接入终端建立通信连接。The communication unit is configured to establish a communication connection with the target access terminal corresponding to the target IP address when receiving the acknowledgement character sent by the target access terminal.
  12. 如权利要求10所述的接入终端,其特征在于,所述终端还包括:The access terminal according to claim 10, wherein the terminal further comprises:
    发送模块,设置为将接入信息发送给所述网络终端,所述接入信息包括本端的IP地址以及接入终端标识,以使所述网络终端在检测到所述IP映射表中所述接入终端的IP地址对应的接入终端标识与所述接入信息中的接入终端标识不一致时,将所述IP映射表中所述接入终端的IP地址对应的接入终端标识更新为所述接入信息中的接入终端标识;a sending module, configured to send the access information to the network terminal, where the access information includes an IP address of the local end and an access terminal identifier, so that the network terminal detects the connection in the IP mapping table When the access terminal identifier corresponding to the IP address of the inbound terminal is inconsistent with the access terminal identifier in the access information, update the access terminal identifier corresponding to the IP address of the access terminal in the IP mapping table to An access terminal identifier in the access information;
    更新接收模块,设置为接收所述网络终端发送的更新后的所述IP映射表。And an update receiving module, configured to receive the updated IP mapping table sent by the network terminal.
  13. 一种无线局域网通信系统,其特征在于,所述系统包括网络终端和接入终端,其中:A wireless local area network communication system, characterized in that the system comprises a network terminal and an access terminal, wherein:
    网络终端,用于获取接入无线局域网接入点的接入终端标识;向所述接入终端标识分配IP地址,建立IP映射表,所述IP映射表包含所述接入终端标识以及所述接入终端标识对应的IP地址;将所述IP映射表发送给接入所述无线局域网接入点的接入终端,以使所述接入终端接收到用户输入的针对目标接入终端标识的通信指令时,根据所述IP映射表获取目标接入终端标识对应的目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接;a network terminal, configured to obtain an access terminal identifier for accessing a wireless local area network access point, assign an IP address to the access terminal identifier, and establish an IP mapping table, where the IP mapping table includes the access terminal identifier and the An IP address corresponding to the access terminal identifier; the IP mapping table is sent to an access terminal that accesses the WLAN access point, so that the access terminal receives the identifier input by the user for the target access terminal identifier. Obtaining, by the IP mapping table, a target IP address corresponding to the target access terminal identifier, and establishing a communication connection with the target access terminal corresponding to the target IP address;
    接入终端,用于接收网络终端发送的IP映射表,所述IP映射表包含接入终端标识以及接入终端标识对应的IP地址;接收用户输入的针对目标接入终端标识的通信指令;根据所述IP映射表,查找所述目标接入终端标识对应的目标IP地址;根据所述目标IP地址,与所述目标IP地址对应的目标接入终端建立通信连接。The access terminal is configured to receive an IP mapping table sent by the network terminal, where the IP mapping table includes an access terminal identifier and an IP address corresponding to the access terminal identifier, and receives a communication instruction input by the user for the target access terminal identifier; The IP mapping table is configured to search for a target IP address corresponding to the target access terminal identifier, and establish a communication connection with the target access terminal corresponding to the target IP address according to the target IP address.
PCT/CN2016/104023 2015-12-31 2016-10-31 Wireless local area network communication method, terminal, and system WO2017113976A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201511032524.XA CN105611608A (en) 2015-12-31 2015-12-31 Wireless local area network communication method, terminal and system
CN201511032524.X 2015-12-31

Publications (1)

Publication Number Publication Date
WO2017113976A1 true WO2017113976A1 (en) 2017-07-06

Family

ID=55991069

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/104023 WO2017113976A1 (en) 2015-12-31 2016-10-31 Wireless local area network communication method, terminal, and system

Country Status (2)

Country Link
CN (1) CN105611608A (en)
WO (1) WO2017113976A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111065141A (en) * 2019-12-30 2020-04-24 海信集团有限公司 Wireless network connection method of intelligent household appliance, intelligent household appliance and system

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105611608A (en) * 2015-12-31 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Wireless local area network communication method, terminal and system
CN112584202A (en) * 2020-11-10 2021-03-30 视联动力信息技术股份有限公司 Data transmission method, device, terminal equipment and storage medium
CN112566094B (en) * 2020-12-04 2022-11-04 展讯通信(上海)有限公司 Terminal device, random access method thereof, and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080293448A1 (en) * 2007-05-24 2008-11-27 Sony Ericsson Mobile Communications Ab Assisted lookup of contacting identifiers
CN101827311A (en) * 2010-02-10 2010-09-08 北京播思软件技术有限公司 Method for realizing interconnection of mobile communication terminals in AD-HOC network
CN102752748A (en) * 2012-06-26 2012-10-24 中国联合网络通信集团有限公司 Data transmission method and system based on mobile terminal and mobile terminal
CN103179229A (en) * 2013-04-17 2013-06-26 华为技术有限公司 Data service communication method, equipment and system
CN105611608A (en) * 2015-12-31 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Wireless local area network communication method, terminal and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080293448A1 (en) * 2007-05-24 2008-11-27 Sony Ericsson Mobile Communications Ab Assisted lookup of contacting identifiers
CN101827311A (en) * 2010-02-10 2010-09-08 北京播思软件技术有限公司 Method for realizing interconnection of mobile communication terminals in AD-HOC network
CN102752748A (en) * 2012-06-26 2012-10-24 中国联合网络通信集团有限公司 Data transmission method and system based on mobile terminal and mobile terminal
CN103179229A (en) * 2013-04-17 2013-06-26 华为技术有限公司 Data service communication method, equipment and system
CN105611608A (en) * 2015-12-31 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Wireless local area network communication method, terminal and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111065141A (en) * 2019-12-30 2020-04-24 海信集团有限公司 Wireless network connection method of intelligent household appliance, intelligent household appliance and system

Also Published As

Publication number Publication date
CN105611608A (en) 2016-05-25

Similar Documents

Publication Publication Date Title
WO2016047983A1 (en) Method and device for wireless communication between communication terminals
WO2017113976A1 (en) Wireless local area network communication method, terminal, and system
WO2015016604A1 (en) Home appliance and control method thereof
WO2011062404A2 (en) Method and device for investigating wifi display service in a wifi direct network
WO2014010992A1 (en) Communication method between content requester and content provider for providing content and real-time streaming content in content name-based content centric network
WO2017030399A1 (en) Ue access method and apparatus
WO2015016627A1 (en) Method and device for connecting single ap device among multiple ap devices on same network to terminal
WO2013189193A1 (en) Method and system for automatically configuring parameters of mobile terminal with android system
WO2012124985A2 (en) Method and apparatus for synchronizing personal inforamtion
WO2011155733A2 (en) Communication method between a device and another device
WO2019156506A1 (en) System and method for providing conversational contents
WO2015037909A1 (en) Method and apparatus for providing push service in communication system
WO2015157942A1 (en) Device and method for accessing wireless network
WO2011155762A2 (en) Method for communicating with other devices, and communication device
WO2014104656A1 (en) Method and system for communication between devices
WO2018076812A1 (en) Data request response method and device, storage medium, server and system
WO2013151298A1 (en) System, terminal, and method for operating a communication service function
WO2019107707A1 (en) Remote control, electronic apparatus and pairing method thereof
WO2018076873A1 (en) Data sharing method, apparatus, medium, electronic device and system
WO2012091528A2 (en) Terminal and method for selecting a reliable ap
WO2017185647A1 (en) Softsim-based imsi number management and calling methods, server and network side device
WO2019223600A1 (en) Bluetooth audio transmission method, device, and computer readable storage medium
WO2017219636A1 (en) Data exchange method, cloud server, and smart terminal
WO2018058832A1 (en) Control method and device for accessing cell
WO2015016655A1 (en) Method and apparatus for establishing communication between terminals

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16880767

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16880767

Country of ref document: EP

Kind code of ref document: A1