CN108990135A - Device name display methods, system and relevant device - Google Patents
Device name display methods, system and relevant device Download PDFInfo
- Publication number
- CN108990135A CN108990135A CN201810862617.2A CN201810862617A CN108990135A CN 108990135 A CN108990135 A CN 108990135A CN 201810862617 A CN201810862617 A CN 201810862617A CN 108990135 A CN108990135 A CN 108990135A
- Authority
- CN
- China
- Prior art keywords
- terminal
- connection request
- name information
- access device
- hot spot
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/11—Allocation or use of connection identifiers
Abstract
The embodiment of the present application discloses a kind of device name display methods, system, access device, hotspot device and storage medium.Wherein, the device name display methods is applied on first terminal, the first terminal is used to indicate the equipment on the personal hot spot for being connected to second terminal offer, which comprises when detecting that user triggers first terminal connection individual's hot spot, obtains the name information of first terminal;Based on network protocol, the first connection request that personal hot spot is connected to for first terminal is generated according to name information;And the first connection request is sent to second terminal;First connection request obtains the name information of the first terminal for the second terminal, and shows the name information of the first terminal.This method can be convenient the facility information that access device is efficiently identified when user opens personal hot spot, improve the identity of access device, the user experience is improved.
Description
Technical field
This application involves the communications fields more particularly to a kind of device name display methods, system, access device, hot spot to set
Standby and computer readable storage medium.
Background technique
With the fast development of terminal device, terminal device has become communications and entertainment indispensable in people's life
Tool.Mobile terminal usually has the function of personal hot spot at present, and after mobile terminal opens personal hot spot, other equipment can be connected
Into individual's hot spot.
Which access device connection is the hotspot device for providing personal hot spot would generally show in personal hot spot administration interface
Onto individual's hot spot, the information for being connected to the access device of individual's hot spot can be shown, be connect with realizing to described
Enter the identification of equipment.However, the information for recognizing access device at present is usually MAC (Media Access Control, media
Access control) address or fixation some device model information, and these information often all do not have good readability, cause
It cannot identify which or which access device is connected to individual's hot spot well, identity is poor.
Summary of the invention
The embodiment of the present application proposes a kind of device name display methods, system and relevant device, can solve existing skill
In art, terminal device when providing personal hot spot as hotspot device, recognize access device information be usually MAC Address or
Fixed device model and cause to identify which or which access device is connected to individual's hot spot well, identify
Property difference technical problem.
In a first aspect, the embodiment of the present application proposes a kind of device name display methods, it is applied on first terminal, described the
One terminal is used to indicate the equipment being connected on the personal hot spot of second terminal offer, which comprises
When detecting that user's triggering first terminal connects the personal hot spot, the title of the first terminal is obtained
Information;
Based on network protocol, is generated according to the name information and be connected to the personal hot spot for the first terminal
First connection request;And
First connection request is sent to the second terminal;First connection request is used for the second terminal
The name information of the first terminal is obtained, and shows the name information of the first terminal.
Second aspect, the embodiment of the present application propose a kind of device name display methods, are applied in second terminal, described the
Two terminals provide personal hot spot, which comprises
Receive the connection request for being connected to the personal hot spot that first terminal is sent, wherein the connection request be by
The first terminal is generated according to the name information of the first terminal;
The connection request is parsed to obtain the title of the first terminal;And
The title of the first terminal is shown.
The third aspect, the embodiment of the present application propose a kind of access device, and the access device, which is used to indicate, is connected to hot spot
The equipment on personal hot spot that equipment provides, the access device include:
Module is obtained, for when detecting that user triggers connection equipment connection individual's hot spot, described in acquisition
The name information of access device;
Generation module is requested, for being based on network protocol, is generated according to the name information and is connected for the equipment that is connected into
It is connected to the first connection request of the personal hot spot;And
Request sending module, for first connection request to be sent to the hotspot device;First connection is asked
The name information for obtaining the first terminal for the hotspot device is sought, and shows the name information of the first terminal.
Fourth aspect, the embodiment of the present application propose that a kind of hotspot device, the hotspot device provide personal hot spot, the heat
Point device includes:
Request receiving module, for receiving the connection request for being connected to the personal hot spot of access device transmission, wherein
The connection request is to be generated by the access device according to the name information of the access device;
Request analysis module, for being parsed to the connection request to obtain the title of the access device;And
Title display module, for showing the title of the access device.
5th aspect, the embodiment of the present application propose a kind of device name display system, comprising: access device and hot spot are set
It is standby, wherein
The access device, for detecting that user triggers the access device and connect that the hotspot device provides
When people's hot spot, the name information of the access device is obtained, is based on network protocol, is generated according to the name information for described
It is connected into the connection request that equipment is connected to the personal hot spot, and the connection request is sent to the hotspot device;
The hotspot device, the connection request sent for receiving the access device, and to the connection request
It is parsed to obtain the title of the access device, and the title of the access device is shown.
6th aspect, the embodiment of the present application propose a kind of access device, including memory, processor and are stored in memory
Computer program that is upper and can running on a processor, when the processor executes described program, realizes the application first aspect
Device name display methods described in embodiment.
7th aspect, the embodiment of the present application propose a kind of non-transitorycomputer readable storage medium, are stored thereon with meter
Calculation machine program realizes device name display side described in the application first aspect embodiment when described program is executed by processor
Method.
Eighth aspect, the embodiment of the present application propose a kind of hotspot device, including memory, processor and are stored in memory
Computer program that is upper and can running on a processor, when the processor executes described program, realizes the application second aspect
Device name display methods described in embodiment.
9th aspect, the embodiment of the present application propose a kind of non-transitorycomputer readable storage medium, are stored thereon with meter
Calculation machine program realizes device name display side described in the application second aspect embodiment when described program is executed by processor
Method.
According to the device name display methods, system, access device, hotspot device and storage medium of the embodiment of the present application,
When detecting that user triggers access device connection individual's hot spot, the name information of access device is obtained, and be based on network protocol,
The first connection request for being directed to and being connected into equipment and being connected to personal hot spot is generated according to name information, and the first connection request is sent
To hotspot device, first connection request obtains the name information of the first terminal for the second terminal, and shows
The name information of the first terminal.I.e. by by the name information of access device as connection request is sent to hotspot device,
So that hotspot device is in the title for obtaining access device, the title of the access device is shown, so as to user's opening
The facility information of access device can be efficiently identified when people's hot spot, also, can be fine by the customized title of user
Identify corresponding access device, improve the identity of access device, the user experience is improved.
The additional aspect of the application and advantage will be set forth in part in the description, and will partially become from the following description
It obtains obviously, or recognized by the practice of the application.
Detailed description of the invention
The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is the exemplary diagram according to the device name display system of the embodiment of the present application;
Fig. 2 is the flow chart according to the device name display methods of the application one embodiment;
Fig. 3 is the flow chart according to the device name display methods of one specific embodiment of the application;
Fig. 4 is the structural schematic diagram according to the access device of the application one embodiment;
Fig. 5 is the structural schematic diagram according to the access device of the application another embodiment;
Fig. 6 is the flow chart according to the device name display methods of the application another embodiment;
Fig. 7 is the structural schematic diagram according to the hotspot device of the application one embodiment;
Fig. 8 is the structural schematic diagram according to the hotspot device of the application another embodiment;
Fig. 9 is the structural schematic diagram according to the device name display system of the application one embodiment;
Figure 10 is the structural schematic diagram according to the access device of the application another embodiment;
Figure 11 is the structural schematic diagram according to the hotspot device of the application another embodiment.
Specific embodiment
Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the application, and should not be understood as the limitation to the application.
Below with reference to the accompanying drawings the device name display methods, system, access device, hotspot device of the embodiment of the present application are described
And computer readable storage medium.
As shown in Figure 1, being the device name display system of the embodiment of the present application.The system may include first terminal and second
Terminal, for example, by taking first terminal A1, first terminal A2 and second terminal B as an example.In this example, which is appreciated that
It is that the equipment being connected on the personal hot spot of second terminal offer is provided.That is, second terminal B can provide individual
Hot spot function, first terminal A1 and first terminal A2 can be connected to second terminal B by the WiFi module of itself and be provided
Personal hot spot on, with the hot spot networks for using second terminal B to provide.As an example, first terminal and second terminal can
To be such as hardware device of mobile phone, tablet computer, personal digital assistant with various operating systems respectively.
In order to can be convenient the facility information for efficiently identifying access device when user opens personal hot spot, improves and connect
Enter the identity of equipment, the embodiment of the present application proposes a kind of device name display methods.It should be noted that the application is implemented
The device name display methods of example can be applied to first terminal (access device of such as the embodiment of the present application).Wherein, first end
End may be used to indicate the equipment on the personal hot spot that may be connected to second terminal offer.
As shown in Fig. 2, the device name display methods may include:
S210 obtains first eventually when detecting that user triggers the personal hot spot that first terminal connection second terminal provides
The name information at end.
Optionally, it is assumed that after second terminal (i.e. the hot terminal of the embodiment of the present application) opens personal hot spot, surrounding its
His equipment can scan the personal hot spot by way of network sweep, and can show the title of scanning to the personal hot spot
Show at wireless network management interface.When user selects the personal hot spot on wireless network management interface and determines connection,
The terminal device of the user can be used as the first terminal (i.e. access device).The first terminal is receiving user's input really
When connecting the personal hot spot surely, the name information of equipment of itself can be obtained.Wherein, in embodiments herein, described
The name information of one terminal is appreciated that the self-defined title for being user to the first terminal, i.e. user can carry out the first terminal
Title is customized, and the customized name is referred to as to the title of the first terminal.As a result, by allowing user according to oneself demand
The title of customized first terminal so that the title meets individual demand, and has good identity.
S220 is based on network protocol, and the first company that personal hot spot is connected to for first terminal is generated according to name information
Connect request.
It is appreciated that first terminal can initiate the connection request to request second terminal point when wireless network connection occurs
With IP address, therefore, triggering command of the first terminal in the personal hot spot for the connection second terminal offer for detecting user's input
When, the name information of the first terminal can be added in first connection request.
It optionally, can in the first terminal triggering connection personal hot spot, and after obtaining the name information of first terminal
It is assisted with the DHCP of DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol) network protocol
View packet is used as carrier, and using the name information as the host name HostName word in DHCP Request (request) message
Section, to generate the first connection request for being connected to the personal hot spot for the first terminal.
First connection request is sent to second terminal by S230, and first connection request obtains for second terminal
The name information of one terminal, and show the name information of first terminal.
For example, in the name information for obtaining first terminal, it can be in the name information as DHCP request message
In HostName field, to obtain being connected to the first connection request of the personal hot spot for the first terminal, and will
First connection request is sent to the corresponding device (i.e. second terminal) of the personal hot spot.Second terminal is receiving first eventually
When holding the first connection request sent, which can be parsed, be obtained in the request to store first eventually
The field contents of title are held, the content which is stored is the title of the first terminal, later, can be by the first terminal
Title be shown on the administration interface of personal hot spot, can be shown on the interface be connected to connecing for the personal hot spot as a result,
The title for entering equipment can identify corresponding access device by the customized title of user well, improve access and set
Standby identity.
For example, as shown in Figure 1, it is assumed that entitled " the plate brick machine of XX " of the customized first terminal A1 of user a1 is used
Entitled " the U.S. face machine of XX " of the customized first terminal A2 of family a2, first terminal A1 and A2 can send to second terminal B and carry
The connection request of equipment of itself title.Second terminal B can distinguish when receiving the connection request of first terminal A1 and A2 transmission
These connection requests are parsed, with the title " the U.S. face machine of XX " of first terminal A1 in being requested, obtain first terminal
The title " the U.S. face machine of XX " of A2, and by the title of first terminal A1 " the U.S. face machine of XX " and the title of first terminal A2 " XX's
U.S. face machine ", is shown on the administration interface of personal hot spot of second terminal B.
According to the device name display methods of the embodiment of the present application, detecting that it is personal hot that user triggers connection equipment connection
When point, the name information of access device is obtained, and be based on network protocol, generated according to name information and be connected to for being connected into equipment
First connection request of personal hot spot, and the first connection request is sent to hotspot device, first connection request is for the
Two terminals obtain the name information of first terminal, and show the name information of the first terminal.I.e. by by the name of access device
Claim information as connection request is sent to hotspot device, so that hotspot device is in the title for obtaining access device, by the access
The title of equipment is shown, the facility information of access device can be efficiently identified when opening personal hot spot so as to user,
Also, corresponding access device can be identified by the customized title of user well, improve the identification of access device
Property, the user experience is improved.
Fig. 3 is the flow chart according to the device name display methods of one specific embodiment of the application.
In order to further enhance user experience, the discrimination for improving access device title can in embodiments herein
Judge whether comprising space or Chinese character etc. in the title of first terminal, if so, needing to encode the title, and will
Title after coding is sent to second terminal with connection request, so as to second terminal can normally show comprising space or in
The title of the first terminal of Chinese character.Specifically, as shown in figure 3, the device name display methods may include:
S310 obtains the name information of first terminal when detecting that user triggers first terminal connection individual's hot spot.
Whether S320 judges in the name information comprising space and/or Chinese character.
It is appreciated that the network protocol due to having does not support space or Chinese character string, when carrying out message transmissions yet
To say, when containing space or Chinese character string etc. in the message of transmission, second terminal receive these contain space or
When the messages such as Chinese character string, after parsing to the message, may obtain cannot be in correct explicit message the case where content.
For example, the message transmissions of DHCP network protocol do not support space or Chinese character string, otherwise there is the case where cannot correctly showing.
The case where in order to avoid this title that cannot correctly show access device, in the name information for obtaining first terminal
Later, it can determine whether in the name information whether to include space and/or Chinese character.
S330 is based on network protocol, according to title when in the name information comprising space and/or Chinese character
Information, which is generated, is connected to the first connection request of personal hot spot for first terminal, and first connection request is sent to second
Terminal, the first connection request obtain the name information of first terminal for second terminal and are shown.
Optionally, it can be assisted in judging the name information not comprising space and/or when Chinese character with DHCP network
The DHCP protocol packet of view is as carrier, using the name information as the HostName field in DHCP Request message, with
Generate the first connection request that the personal hot spot is connected to for the first terminal.It later, can be by the first connection of generation
Request is sent to second terminal.Second terminal can parse the request when receiving first connection request to read
The title of first terminal in the HostName field, and the title of the first terminal is shown into the administration interface in personal hot spot
On.
S340, when in the name information comprising space and/or Chinese character, according to target code mode to the name
Information is claimed to be encoded.
It, can be according to presetting that is, when including space and/or Chinese character in judging the name information
Coding mode (such as ASCII coding mode, Unicode coding mode) to it is described include space and/or Chinese character
Name information is encoded.
S350 is generated according to the name information after coding and is connected to the personal hot spot for the first terminal
Second connection request, and second connection request is sent to second terminal, which passes through for second terminal
The judging result whether the HostName field in the request is encoded obtains the name information of first terminal and is shown.
Optionally, using the DHCP protocol packet of DHCP network protocol as carrier, using the name information after coding as
HostName field in DHCPRequest message is connected to the of the personal hot spot for the first terminal to generate
Two connection requests.Later, the second connection request of generation can be sent to second terminal.Second terminal is receiving second company
When connecing request, which can be parsed to obtain the HostName field in the request, and judging the HostName
When field is encoded, the HostName field is decoded to obtain the title of first terminal according to target code mode,
And when judging that the HostName field is not encoded, the content of the HostName field is read to obtain first terminal
Title, and show the title of the first terminal.
That is, second terminal can carry out the connection request when receiving the connection request of some equipment transmission
Parsing, to obtain the HostName field in the connection request, can determine whether the HostName field encodes at this time, if
There is coding to be then decoded the content of the HostName field, to obtain the title of some equipment;If should
HostName field is not encoded, then the title of some equipment can be directly read out from the HostName field, most
Afterwards, the title of some equipment described in obtaining is shown.
According to the device name display methods of the embodiment of the present application, whether can determine whether in the title of access device comprising space
Or Chinese character etc., if so, needing to encode the title, and the title after coding is sent to hot spot with connection request
Equipment further mentions so that hotspot device can normally show the title of the access device comprising space or Chinese character
The high discrimination of access device title, the user experience is improved.
Corresponding with the device name display methods that above-mentioned several embodiments provide, a kind of embodiment of the application also provides
A kind of access device, since the device name of access device provided by the embodiments of the present application and above-mentioned several embodiment offers is shown
Method is corresponding, therefore is also applied for access provided in this embodiment in the embodiment of aforementioned device name display method and sets
It is standby, it is not described in detail in the present embodiment.Fig. 4 is the structural schematic diagram according to the access device of the application one embodiment.
It is connected on the personal hot spot of hotspot device offer it should be noted that the access device of the embodiment of the present application may be used to indicate
Equipment.As shown in figure 4, the access device 400 may include: to obtain module 410, request generation module 420 and request to send mould
Block 430.
Specifically, module 410 is obtained to be used to obtain when detecting that user's triggering access device connects the personal hot spot
The name information of the access device.
It requests generation module 420 to be used to be based on network protocol, is generated according to the name information and be connected into equipment for described
It is connected to the first connection request of the personal hot spot.As an example, request generation module 420 with DHCP network protocol
DHCP protocol packet is as carrier, using the name information as the HostName field in DHCP Request message, to generate
For first connection request for being connected into equipment and being connected to the personal hot spot.
Request sending module 430 is used to the connection request being sent to the hotspot device;First connection request
The name information of the access device is obtained for the hotspot device, and shows the name information of the access device.
In order to further enhance user experience, the discrimination of access device title is improved, optionally, at one of the application
In embodiment, as shown in figure 5, the access device 400 may also include that judgment module 440 and coding module 450.Wherein, judge mould
Whether block 440 is for judging in the name information comprising space and/or Chinese character;Request generation module 420 is also used to
When in the name information not including space and/or Chinese character, is generated according to the name information and be connected into equipment for described
It is connected to the first connection request of the personal hot spot.
When coding module 450 is used in the name information comprising space and/or Chinese character, according to target code side
Formula encodes the name information.Wherein, in embodiments herein, after request generation module 420 can be according to coding
The name information generate the second connection request that the personal hot spot is connected to for the access device;Described second connects
It connects request and is used for the judgement the knot whether hotspot device is encoded by the HostName field in second connection request
Fruit obtains the name information of the access device.
That is, can determine whether comprising space or Chinese character etc. in the title of access device, if so, needs pair
The title is encoded, and the title after coding is sent to hotspot device with connection request, so that hotspot device can be normal
Ground shows the title of the access device comprising space or Chinese character.
According to the access device of the embodiment of the present application, user's triggering connection equipment connection can be being detected by obtaining module
When personal hot spot, the name information of access device is obtained, request generation module is based on network protocol, generates needle according to name information
To the first connection request for being connected into equipment and being connected to personal hot spot, the first connection request is sent to hot spot and set by request sending module
Standby, first connection request obtains the name information of access device for hotspot device, and shows the title letter of access device
Breath.I.e. by by the name information of access device as connection request is sent to hotspot device, so that hotspot device is being connect
When entering the title of equipment, the title of the access device is shown, can effectively be known when opening personal hot spot so as to user
It is clipped to the facility information of access device, also, can identify that corresponding access is set well by the customized title of user
It is standby, the identity of access device is improved, the user experience is improved.
Fig. 6 is the flow chart according to the device name display methods of the application another embodiment.It should be noted that this
The device name display methods of application embodiment can be applied in second terminal (i.e. the hotspot device of the embodiment of the present application), described
Second terminal provides personal hot spot.
As shown in fig. 6, the device name display methods may include:
S610 receives the connection request for being connected to personal hot spot that first terminal is sent, wherein connection request is by first
Terminal is generated according to the name information of first terminal.
Optionally, it is assumed that after second terminal (i.e. the hotspot device of the embodiment of the present application) opens personal hot spot, surrounding its
His equipment can scan the personal hot spot by way of network sweep, and can show the title of scanning to the personal hot spot
Show at wireless network management interface.When user selects the personal hot spot on wireless network management interface and determines connection,
The terminal device of the user can be used as the access device (i.e. above-mentioned first terminal).The first terminal is detecting that user is defeated
When the determination entered connects the personal hot spot, the name information of equipment of itself can be obtained, and be based on network protocol, according to the name
Claim information to generate and be connected to the connection request of personal hot spot for first terminal, and the connection request can be sent to second eventually
End, so that second terminal can receive the connection request for being connected to personal hot spot of first terminal transmission, and in the connection request
Carry the name information of the first terminal.
Wherein, in embodiments herein, it is user to first end that the name information of the first terminal, which is appreciated that,
It is customized that the self-defined title at end, i.e. user can carry out title to the first terminal, and by the customized name be referred to as this
The title of one terminal.As a result, by allowing user according to the title of the customized access device of oneself demand, so that the title meets
Property demand, and have good identity.
S620 parses connection request to obtain the title of first terminal.
That is, the connection request can be parsed based on network protocol used in the personal hot spot, with
Obtain the title of the first terminal carried in the connection request.
It is appreciated that the network protocol due to having does not support space or Chinese character string, when carrying out message transmissions yet
To say, when containing space or Chinese character string etc. in the message of transmission, second terminal receive these contain space or
When the messages such as Chinese character string, after parsing to the message, may obtain cannot be in correct explicit message the case where content.
For example, the message transmissions of DHCP network protocol do not support space or Chinese character string, otherwise there is the case where cannot correctly showing.
The case where in order to avoid this title that cannot correctly show access device, user experience is further promoted, improved
The discrimination of access device title.Optionally, in one embodiment of the application, the connection request can be parsed with
The HostName field in the connection request is obtained, and judges whether the HostName field is encoded;Described
When HostName field is encoded, the HostName field is decoded to obtain access device according to target code mode
Title;When the HostName field is not encoded, the content of the HostName field is read to obtain first terminal
Title.
That is, can determine whether the HostName field in the connection request is encoded, if so, needing to institute
It states HostName field to be decoded to obtain the title of first terminal, so that second terminal can normally be shown comprising sky
The title of the first terminal of lattice or Chinese character, further improves the discrimination of access device title, the user experience is improved.
S630 shows the title of first terminal.
According to the device name display methods of the embodiment of the present application, can by by the name information of access device with connection
Request is sent to hotspot device, so that hotspot device is in the title for obtaining access device, the title of the access device is carried out
Display can efficiently identify the facility information of access device when opening personal hot spot so as to user, also, certainly by user
The title of definition can identify corresponding access device well, improve the identity of access device, improve user's body
It tests.
Corresponding with the device name display methods that above-mentioned embodiment illustrated in fig. 6 provides, a kind of embodiment of the application is also
A kind of hotspot device is provided, the equipment provided due to hotspot device provided by the embodiments of the present application and above-mentioned embodiment illustrated in fig. 6
Name display method is corresponding, therefore is also applied in the embodiment of aforementioned device name display method provided in this embodiment
Hotspot device is not described in detail in the present embodiment.Fig. 7 is shown according to the structure of the hotspot device of the application one embodiment
It is intended to.It should be noted that the hotspot device of the embodiment of the present application provides personal hot spot.As shown in fig. 7, the hotspot device 700
It may include: request receiving module 710, request analysis module 720 and title display module 730.
Specifically, request receiving module 710, the connection for being connected to personal hot spot for receiving access device transmission are asked
It asks, wherein connection request is to be generated by access device according to the name information of access device.
Request analysis module 720, for being parsed to connection request to obtain the title of access device.
The case where in order to avoid this title that cannot correctly show access device, user experience is further promoted, improved
The discrimination of access device title.As an example, as shown in figure 8, the request analysis module 720 can include: resolution unit
721, judging unit 722, decoding unit 723 and title reading unit 724.Wherein, resolution unit 721 is for asking the connection
It asks and is parsed to obtain the HostName field in the connection request;Judging unit 722 is for judging the HostName
Whether field is encoded;Decoding unit 723 is used for when the HostName field is encoded, according to target code mode to institute
HostName field is stated to be decoded to obtain the title of access device;Title reading unit 724 is used in the HostName
When field is not encoded, the content of the HostName field is read to obtain the title of access device.
Title display module 730, for showing the title of access device.
According to the hotspot device of the embodiment of the present application, can by by the name information of access device as connection request is sent
The title of the access device is shown so that hotspot device is in the title for obtaining access device to hotspot device, so as to
User can efficiently identify the facility information of access device when opening personal hot spot, also, pass through the customized name of user
Title can identify corresponding access device well, improve the identity of access device, the user experience is improved.
Fig. 9 is the structural schematic diagram according to the device name display system of the application one embodiment.As shown in figure 9, should
Device name display system 900 may include: access device 910 and hotspot device 920.
Specifically, access device 910, for detecting what user's triggering connection hotspot device of access device 910 provided
When personal hot spot, the name information of access device 910 is obtained, is based on network protocol, is generated according to name information and is set for being connected into
Standby 910 are connected to the connection request of personal hot spot, and connection request is sent to hotspot device 920.
Hotspot device 920, for receive access device 910 transmission connection request, and to connection request parsed with
The title of access device 910 is obtained, and the title of access device 910 is shown.
It is appreciated that the network protocol due to having does not support space or Chinese character string, when carrying out message transmissions yet
To say, when containing space or Chinese character string etc. in the message of transmission, hotspot device receive these contain space or
When the messages such as Chinese character string, after parsing to the message, may obtain cannot be in correct explicit message the case where content.
For example, the message transmissions of DHCP network protocol do not support space or Chinese character string, otherwise there is the case where cannot correctly showing.
The case where in order to avoid this title that cannot correctly show access device, user experience is further promoted, improved
The discrimination of access device title.Optionally, in one embodiment of the application, access device 910 is in the name for obtaining itself
When claiming information, it can determine whether comprising space and/or Chinese character in the name information, if it is not, being then based on network protocol, root
The connection request for being directed to and being connected into equipment 910 and being connected to personal hot spot is generated according to name information, and the connection request is sent to heat
Point device 920.If judging comprising space and/or Chinese character in the name information, according to target code mode to described
Name information is encoded, and is generated according to the name information after coding and be connected to the individual for being connected into equipment 910
The connection request is simultaneously sent to hotspot device 920 by the connection request of hot spot.
Hotspot device 920 can solve the connection request when receiving the connection request of the transmission of access device 910
Analysis, obtains the HostName field in the connection request, and judge whether the HostName field is encoded;Described
When HostName field is encoded, the HostName field is decoded to obtain access device according to target code mode
910 title, and the title of the access device 910 is shown.Hotspot device 920 is not compiled in the HostName field
When code, the content of the HostName field is read to obtain the title of access device 910, and by the name of the access device 910
Title is shown.
According to the device name display system of the embodiment of the present application, can by by the name information of access device with connection
Request is sent to hotspot device, so that hotspot device is in the title for obtaining access device, the title of the access device is carried out
Display can efficiently identify the facility information of access device when opening personal hot spot so as to user, also, certainly by user
The title of definition can identify corresponding access device well, improve the identity of access device, improve user's body
It tests.
In order to realize above-described embodiment, the application also proposed a kind of access device.
Figure 10 is the structural schematic diagram according to the access device of the application another embodiment.As shown in Figure 10, the access
Equipment 1000 may include: memory 1010, processor 1020 and be stored on memory 1010 and can be on processor 1020
The computer program 1030 of operation when processor 1020 executes described program 1030, is realized shown in the above-mentioned Fig. 2 and Fig. 3 of the application
Device name display methods described in embodiment.
In order to realize above-described embodiment, the application also proposed a kind of non-transitorycomputer readable storage medium, thereon
It is stored with computer program, is realized when described program is executed by processor described in the above-mentioned Fig. 2 of the application and embodiment illustrated in fig. 3
Device name display methods.
In order to realize above-described embodiment, the application also proposed a kind of hotspot device.
Figure 11 is the structural schematic diagram according to the hotspot device of the application another embodiment.As shown in figure 11, the hot spot
Equipment 1100 may include: memory 1110, processor 1120 and be stored on memory 1110 and can be on processor 1120
The computer program 1130 of operation when processor 1120 executes described program 1130, realizes the above-mentioned embodiment illustrated in fig. 6 of the application
The device name display methods.
In order to realize above-described embodiment, the application also proposed a kind of non-transitorycomputer readable storage medium, thereon
It is stored with computer program, equipment described in the above-mentioned embodiment illustrated in fig. 6 of the application is realized when described program is executed by processor
Name display method.
In the description of the present application, it is to be understood that term " first ", " second " are used for description purposes only, and cannot
It is interpreted as indication or suggestion relative importance or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the
One ", the feature of " second " can explicitly or implicitly include at least one of the features.In the description of the present application, " multiple "
It is meant that at least two, such as two, three etc., unless otherwise specifically defined.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be by the application
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the application
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the application
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of application
Type.
Claims (17)
1. a kind of device name display methods, which is characterized in that be applied on first terminal, the first terminal is used to indicate company
The equipment being connected on the personal hot spot of second terminal offer, which comprises
When detecting that user's triggering first terminal connects the personal hot spot, the title letter of the first terminal is obtained
Breath;
Based on network protocol, is generated according to the name information and be connected to the first of the personal hot spot for the first terminal
Connection request;And
First connection request is sent to the second terminal;First connection request is obtained for the second terminal
The name information of the first terminal, and show the name information of the first terminal.
2. the method as described in claim 1, which is characterized in that it is described to be based on network protocol, it is generated according to the name information
The first connection request of the personal hot spot is connected to for the first terminal, comprising:
Using the DHCP protocol packet of dynamic host configuration protocol DHCP network protocol as carrier, using the name information as DHCP
Host name HostName field in request message is connected to the first of the personal hot spot for the first terminal to generate
Connection request.
3. method according to claim 1 or 2, which is characterized in that be directed to described first generating according to the name information
Terminal is connected to the first connection request of the personal hot spot, before further include:
Whether judge in the name information comprising space and/or Chinese character;
When not including space and/or Chinese character in the name information, execute described according to name information generation needle
The step of first connection request of the personal hot spot is connected to the first terminal.
4. method as claimed in claim 3, which is characterized in that further include:
In the name information include space and/or Chinese character when, according to target code mode to the name information into
Row coding;
It is described that the first connection request that the personal hot spot is connected to for the first terminal is generated according to the name information,
Include:
The second connection that the personal hot spot is connected to for the first terminal is generated according to the name information after coding
Request;Second connection request for the second terminal by the HostName field in second connection request whether
Judging result encoded obtains the name information of the first terminal.
5. a kind of device name display methods, which is characterized in that be applied in second terminal, the second terminal provides personal heat
Point, which comprises
Receive the connection request for being connected to the personal hot spot that first terminal is sent, wherein the connection request is by described
First terminal is generated according to the name information of the first terminal;
The connection request is parsed to obtain the title of the first terminal;And
The title of the first terminal is shown.
6. method as claimed in claim 5, which is characterized in that described to be parsed to the connection request to obtain described
The title of one terminal, comprising:
The connection request is parsed to obtain the HostName field in the connection request;
Judge whether the HostName field is encoded;
When the HostName field is encoded, the HostName field is decoded to obtain according to target code mode
To the title of first terminal;
When the HostName field is not encoded, the content of the HostName field is read to obtain the name of first terminal
Claim.
7. a kind of access device, which is characterized in that the access device is used to indicate the individual's heat for being connected to hotspot device offer
Equipment on point, the access device include:
Module is obtained, for obtaining the access when detecting that user's triggering access device connects the personal hot spot
The name information of equipment;
Request generation module is connected into equipment for described according to name information generation and is connected to for being based on network protocol
First connection request of individual's hot spot;And
Request sending module, for first connection request to be sent to the hotspot device;First connection request is used
The name information of the first terminal is obtained in the hotspot device, and shows the name information of the first terminal.
8. access device as claimed in claim 7, which is characterized in that the request generation module is specifically used for:
Using the DHCP protocol packet of DHCP network protocol as carrier, using the name information as in DHCP request message
HostName field, to generate for first connection request for being connected into equipment and being connected to the personal hot spot.
9. access device as claimed in claim 7 or 8, which is characterized in that further include:
Judgment module, for whether judging in the name information comprising space and/or Chinese character;
Wherein, the request generation module, when being also used in the name information not comprising space and/or Chinese character, root
It generates according to the name information for first connection request for being connected into equipment and being connected to the personal hot spot.
10. access device as claimed in claim 9, which is characterized in that further include:
Coding module, when for including space and/or Chinese character in the name information, according to target code mode to institute
Name information is stated to be encoded;
Wherein, the request generation module is specifically used for: being generated according to the name information after coding and is set for the access
Standby the second connection request for being connected to the personal hot spot;Second connection request passes through described for the hotspot device
The judging result whether the HostName field in two connection requests is encoded, obtains the name information of the access device.
11. a kind of hotspot device, which is characterized in that the hotspot device provides personal hot spot, and the hotspot device includes:
Request receiving module, for receiving the connection request for being connected to the personal hot spot of access device transmission, wherein described
Connection request is to be generated by the access device according to the name information of the access device;
Request analysis module, for being parsed to the connection request to obtain the title of the access device;And
Title display module, for showing the title of the access device.
12. hotspot device as claimed in claim 11, which is characterized in that the request analysis module includes:
Resolution unit, for being parsed to the connection request to obtain the HostName field in the connection request;
Judging unit, for judging whether the HostName field is encoded;
Decoding unit is used for when the HostName field is encoded, according to target code mode to the HostName word
Section is decoded to obtain the title of access device;
Title reading unit, for reading the content of the HostName field when the HostName field is not encoded
To obtain the title of access device.
13. a kind of device name display system characterized by comprising access device and hotspot device, wherein
The access device, for detecting that user touches the access device and connect the personal hot spot that the hotspot device provides
When, the name information of the access device is obtained, network protocol is based on, is generated according to the name information and is set for described be connected into
The standby connection request for being connected to the personal hot spot, and the connection request is sent to the hotspot device;
The hotspot device, the connection request sent for receiving the access device, and the connection request is carried out
Parsing is shown the title of the access device with obtaining the title of the access device.
14. a kind of access device including memory, processor and stores the calculating that can be run on a memory and on a processor
Machine program, which is characterized in that when the processor executes described program, realization is set according to any one of claims 1 to 4
Standby name display method.
15. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the journey
Device name display methods according to any one of claims 1 to 4 is realized when sequence is executed by processor.
16. a kind of hotspot device including memory, processor and stores the calculating that can be run on a memory and on a processor
Machine program, which is characterized in that when the processor executes described program, realize as device name described in claim 5 or 6 is aobvious
Show method.
17. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the journey
Such as device name display methods described in claim 5 or 6 is realized when sequence is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810862617.2A CN108990135A (en) | 2018-08-01 | 2018-08-01 | Device name display methods, system and relevant device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810862617.2A CN108990135A (en) | 2018-08-01 | 2018-08-01 | Device name display methods, system and relevant device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108990135A true CN108990135A (en) | 2018-12-11 |
Family
ID=64551241
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810862617.2A Pending CN108990135A (en) | 2018-08-01 | 2018-08-01 | Device name display methods, system and relevant device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108990135A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102821192A (en) * | 2012-06-30 | 2012-12-12 | 华为终端有限公司 | Data transmission method and data transmission device |
CN103117906A (en) * | 2013-02-27 | 2013-05-22 | 广东欧珀移动通信有限公司 | Flow control method for process of sharing WiFi (wireless fidelity) hot spot for mobile terminals |
CN103188680A (en) * | 2011-12-28 | 2013-07-03 | 中国移动通信集团广东有限公司 | Access method and access device of wireless network, and DHCP server side |
CN104469894A (en) * | 2014-11-14 | 2015-03-25 | 广东欧珀移动通信有限公司 | Method and device for connecting Wi-Fi loudspeaker box to wireless networks |
CN104837179A (en) * | 2015-04-02 | 2015-08-12 | 广东欧珀移动通信有限公司 | Method and device for displaying wireless hotspot equipment producer information |
CN104902497A (en) * | 2015-04-08 | 2015-09-09 | 广东欧珀移动通信有限公司 | Method and device for managing mobile phone hotspot connection |
CN105610842A (en) * | 2015-12-30 | 2016-05-25 | 广东欧珀移动通信有限公司 | WIFI hotspot access method and mobile device |
EP3291485A1 (en) * | 2016-08-30 | 2018-03-07 | Samsung Electronics Co., Ltd. | Communication device and communication method |
-
2018
- 2018-08-01 CN CN201810862617.2A patent/CN108990135A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103188680A (en) * | 2011-12-28 | 2013-07-03 | 中国移动通信集团广东有限公司 | Access method and access device of wireless network, and DHCP server side |
CN102821192A (en) * | 2012-06-30 | 2012-12-12 | 华为终端有限公司 | Data transmission method and data transmission device |
CN103117906A (en) * | 2013-02-27 | 2013-05-22 | 广东欧珀移动通信有限公司 | Flow control method for process of sharing WiFi (wireless fidelity) hot spot for mobile terminals |
CN104469894A (en) * | 2014-11-14 | 2015-03-25 | 广东欧珀移动通信有限公司 | Method and device for connecting Wi-Fi loudspeaker box to wireless networks |
CN104837179A (en) * | 2015-04-02 | 2015-08-12 | 广东欧珀移动通信有限公司 | Method and device for displaying wireless hotspot equipment producer information |
CN104902497A (en) * | 2015-04-08 | 2015-09-09 | 广东欧珀移动通信有限公司 | Method and device for managing mobile phone hotspot connection |
CN105610842A (en) * | 2015-12-30 | 2016-05-25 | 广东欧珀移动通信有限公司 | WIFI hotspot access method and mobile device |
EP3291485A1 (en) * | 2016-08-30 | 2018-03-07 | Samsung Electronics Co., Ltd. | Communication device and communication method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107784516A (en) | Advertisement placement method and device | |
CN103501486B (en) | A kind of information push method and push server | |
KR100540241B1 (en) | method for managing message | |
TWI472215B (en) | User equipment with character display ambiguities solution, method for decoding ambiguous character code and computer program product performing such method | |
BR112012003248B1 (en) | method and server for instant messaging | |
CN107908686B (en) | Information pushing method and device, server and readable storage medium | |
CN115004672B (en) | Information pushing method, device, server and storage medium | |
CN109413017B (en) | Method and system for managing heterogeneous firewall | |
CN106792250A (en) | Barrage information interacting method and device | |
CN108932102A (en) | Data processing method, device and mobile terminal | |
CN104580380B (en) | The synchronous method and system of logging state | |
CN108989240A (en) | Method for controlling network flow, device, terminal device and storage medium | |
CN109150997A (en) | Internet behavior monitoring method, device, terminal device and storage medium | |
CN109710439A (en) | Fault handling method and device | |
CN108495316B (en) | Wireless connection method and device | |
CN108076017A (en) | The protocol analysis method and device of a kind of data packet | |
CN103001934B (en) | The method and system that terminal applies logs in | |
CN108738108A (en) | A kind of sequencing display method, equipment and the storage medium of hotspot | |
CN110072268A (en) | Method, equipment and the computer storage medium that wifi hotspot is shared | |
CN109104723A (en) | A kind of network name display methods and relevant device | |
CN108990135A (en) | Device name display methods, system and relevant device | |
CN109656564A (en) | The analytic method and system of DBC message are realized based on LABVIEW and .NET | |
CN113055348A (en) | Cross-platform data request method and device and electronic equipment | |
CN103544144B (en) | Mobile client cloud interpretation method and mobile client cloud translation system | |
CN111723236A (en) | Video index establishing method, device, equipment and computer readable medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181211 |
|
RJ01 | Rejection of invention patent application after publication |