CN111200860A - Method, device and system for sharing network - Google Patents

Method, device and system for sharing network Download PDF

Info

Publication number
CN111200860A
CN111200860A CN201811382957.1A CN201811382957A CN111200860A CN 111200860 A CN111200860 A CN 111200860A CN 201811382957 A CN201811382957 A CN 201811382957A CN 111200860 A CN111200860 A CN 111200860A
Authority
CN
China
Prior art keywords
network
information
network channel
indication information
sharing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811382957.1A
Other languages
Chinese (zh)
Inventor
李贺理
崔庆亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Quarkdata Software Co ltd
ThunderSoft Co Ltd
Original Assignee
Quarkdata Software Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Quarkdata Software Co ltd filed Critical Quarkdata Software Co ltd
Priority to CN201811382957.1A priority Critical patent/CN111200860A/en
Publication of CN111200860A publication Critical patent/CN111200860A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method, a device and a system for sharing a network.A second device (taking a mobile phone as an example) is connected to a first device (taking a vehicle-mounted device as an example) according to indication information (such as a two-dimensional code) of the first device, the mobile phone is used as a connecting party at the moment, the vehicle-mounted device is used as a connected party, and the initial connection is used for information transmission and is prepared for secondary connection. When the role reversal happens in the secondary connection, the mobile phone becomes a connected party, the vehicle-mounted equipment becomes a connected party, and the vehicle-mounted equipment can share the internet surfing function of the mobile phone after being connected to the mobile phone. By means of 'twice connection' and 'role reversal', the mobile device can be operated by utilizing existing hardware, the camera requirement is avoided, hardware overhead is avoided being increased, meanwhile, the two devices automatically perform role switching, manual operation steps such as password inputting are not needed, automation is achieved, efficiency is improved, user experience is improved, and the technical problems that operation is convenient and fast when a network is shared and the hardware overhead cannot be simultaneously considered are solved.

Description

Method, device and system for sharing network
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method, a device and a system for sharing a network.
Background
In daily life or industrial production, many devices have a need to access the internet, and the following scenes are sometimes encountered: the device 1 needs to access the internet but cannot access the internet, and the device 2 can access the internet, so that how to enable the device 1 to access the internet by means of the device 2 becomes a problem to be solved. Taking the automobile industry as an example, in the domestic current vehicle-mounted environment, most car machines do not have the capability of directly accessing a mobile network to access the internet by inserting an SIM (subscriber identity module) card or by using an e-SIM (embedded SIM) technology, and meanwhile, mobile devices such as mobile phones and the like can generally access the internet, and the mobile phones often sign large-traffic data packages, and have the feasibility of sharing data traffic to other devices.
In the prior art, if a vehicle-mounted device accesses the internet by using a mobile phone, the following steps are generally required:
1. a user manually starts a Wi-Fi AP (Wi-Fi Access Point, Wi-Fi hotspot) at a mobile phone end, sets a Wi-Fi password and prepares for sharing a data network;
2. a user manually searches surrounding Wi-Fi networks at the vehicle-mounted equipment end, finds a mobile phone Wi-Fi hotspot, inputs a Wi-Fi password and successfully joins the mobile phone Wi-Fi hotspot;
3. the vehicle-mounted device starts to transit to access the internet via the mobile phone Wi-Fi hotspot.
The inventor finds that in the process of implementing the invention, multiple manual operations are needed in the scheme, so that the steps are complicated, the efficiency is low, and the user experience is not good.
In another prior art, the following steps may also be performed to enable the vehicle-mounted device to access the internet by using a mobile phone:
1. a user manually opens a Wi-Fi hotspot at a mobile phone end, sets a Wi-Fi password and prepares for sharing a data network;
2. the mobile phone terminal generates a two-dimensional code containing information necessary for accessing the Wi-Fi hotspot;
3. and other equipment acquires Wi-Fi hotspot information by scanning the two-dimensional code on the mobile phone and accesses the Wi-Fi hotspot of the mobile phone to access the Internet.
However, in the process of implementing the present invention, the inventor finds that the above solution, although more convenient than the first solution, requires other devices to have hardware for scanning, such as a camera, in other words, the second solution is only suitable for devices capable of scanning two-dimensional codes, and thus has a narrow application range. For example, the vehicle-mounted device may have a screen, but generally, a camera is not configured, and the camera cannot scan a mobile phone screen, so the second scheme cannot be applied to a vehicle-mounted scene.
In summary, the inventor finds that a technical scheme which is convenient and fast to operate and does not have extra hardware overhead is still absent in the prior art in the process of implementing the invention.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a system for sharing a network, which aim to solve the technical problems that the operation is convenient and fast and the hardware overhead cannot be simultaneously considered when the network is shared.
According to a first aspect of embodiments of the present invention, there is provided a method for sharing a network, the method being used for a first device and a second device, the method comprising:
the first device opens a first network channel and generates indication information, wherein the indication information comprises first connection information and sharing request information, the first connection information is information required by being connected to the first device through the first network channel, and the sharing request information is used for requesting a sharing network;
the second equipment acquires the indication information;
the second device sends second connection information to the first device through the first network channel by using the first connection information according to the sharing request information, and opens a second network channel to start a network sharing function, wherein the second connection information is information required for connecting to the second device through the second network channel;
and the first equipment is connected to the second equipment through the second network channel according to the received second connection information, and accesses the Internet by using the network sharing function of the second equipment.
Optionally, the indication information is carried in the following manner:
two-dimensional codes, bar codes or near field communication NFC.
Optionally, when the bearing manner of the indication information is a two-dimensional code:
the first device generates indication information, including:
the first equipment displays the indication information on a screen of the first equipment in a two-dimensional code form;
the second device acquires the indication information, and the method comprises the following steps:
and the second equipment reads the two-dimensional code through a camera on the second equipment.
Optionally:
the network system of the first network channel is Wi-Fi or Bluetooth;
and the network standard of the second network channel is Wi-Fi or Bluetooth.
Optionally, when the network type of the first network channel is Wi-Fi, the first connection information includes the following field contents:
access point name, band, security type, password;
when the network type of the second network channel is Wi-Fi, the second connection information includes the following field contents:
access point name, band, security type, password.
Optionally, when the network types of the first network channel and the second network channel are both Wi-Fi:
before the second device opens the second network channel, the method further comprises: the second equipment disconnects the connection established with the first equipment through the first network channel;
before the first device connects to the second device over the second network channel, the method further comprises: the first device closes the first network channel.
Optionally, the first device is a vehicle-mounted device, and the second device is a mobile phone.
According to a second aspect of the embodiments of the present invention, there is provided a method for sharing a network, the method being used for a first device, the method including:
opening a first network channel, and generating indication information, wherein the indication information includes first connection information and sharing request information, the first connection information is information required for connecting to the first device through the first network channel, and the sharing request information is used for requesting a sharing network;
receiving second connection information sent by a second device through the first network channel, wherein the second device is a device for acquiring the indication information, and the second connection information is information required for connecting to the second device through a second network channel started by the second device;
and connecting to the second device through the second network channel according to the second connection information, and accessing the internet using a network sharing function of the second device.
Optionally:
the network system of the first network channel is Wi-Fi or Bluetooth.
Optionally, the indication information is carried in the following manner:
two-dimensional codes, bar codes or near field communication NFC.
Optionally, when the bearing manner of the indication information is a two-dimensional code:
the generating indication information includes:
and displaying the indication information on a screen of the first equipment in a two-dimensional code form.
Optionally, the first device is a vehicle-mounted device.
According to a third aspect of embodiments of the present invention, there is provided a method of sharing a network, the method being used for a second device, the method comprising:
acquiring indication information, wherein the indication information is generated by a first device, the indication information includes first connection information and sharing request information, the first connection information is information required for connecting to the first device through a first network channel opened by the first device, and the sharing request information is used for requesting a sharing network;
according to the sharing request information, second connection information is sent to the first equipment through the first network channel by using the first connection information, a second network channel is opened, and a network sharing function is started, wherein the second connection information is information required for connecting to the second equipment through the second network channel;
accepting a connection request of the first device to connect to the second device via the second network channel, and allowing the first device to use a network sharing function of the second device to enable the first device to access the internet.
Optionally:
and the network standard of the second network channel is Wi-Fi or Bluetooth.
Optionally, the indication information is carried in the following manner:
two-dimensional codes, bar codes or near field communication NFC.
Optionally, when the bearing manner of the indication information is a two-dimensional code:
acquiring the indication information, including:
and reading the two-dimensional code through a camera on the second equipment.
Optionally, the second device is a mobile phone.
According to a fourth aspect of embodiments of the present invention, there is provided an apparatus for sharing a network, the apparatus being used for a first device, the apparatus comprising:
a first network channel opening unit, configured to open a first network channel;
an indication information generating unit, configured to generate indication information, where the indication information includes first connection information and sharing request information, the first connection information is information required to be connected to the first device through the first network channel, and the sharing request information is used to request a sharing network;
a second connection information receiving unit, configured to receive second connection information sent by a second device through the first network channel, where the second device is a device that acquires the indication information, and the second connection information is information required to connect to the second device through a second network channel opened by the second device;
a second network channel connection unit, configured to connect to the second device through the second network channel according to the second connection information;
and the network access unit is used for accessing the Internet by using the network sharing function of the second equipment.
Optionally:
the network system of the first network channel is Wi-Fi or Bluetooth.
Optionally, the indication information is carried in the following manner:
two-dimensional codes, bar codes or near field communication NFC.
Optionally, when the bearing manner of the indication information is a two-dimensional code:
the indication information generating unit is used for:
and displaying the indication information on a screen of the first equipment in a two-dimensional code form.
Optionally, the first device is a vehicle-mounted device.
According to a fifth aspect of embodiments of the present invention, there is provided an apparatus for sharing a network, the apparatus being used for a second device, the apparatus including:
an indication information obtaining unit, configured to obtain indication information, where the indication information is generated by a first device, the indication information includes first connection information and sharing request information, the first connection information is information required to connect to the first device through a first network channel opened by the first device, and the sharing request information is used to request a sharing network;
a second connection information sending unit, configured to send, according to the sharing request information, second connection information to the first device through the first network channel using the first connection information, where the second connection information is information required to connect to the second device through a second network channel;
a second network channel opening unit, configured to open the second network channel;
and the network service unit is used for starting a network sharing function, receiving a connection request of the first equipment for connecting to the second equipment through the second network channel, and allowing the first equipment to use the network sharing function of the second equipment so as to enable the first equipment to access the Internet.
Optionally:
and the network standard of the second network channel is Wi-Fi or Bluetooth.
Optionally, the indication information is carried in the following manner:
two-dimensional codes, bar codes or near field communication NFC.
Optionally, when the bearing manner of the indication information is a two-dimensional code:
the indication information acquisition unit is used for:
and reading the two-dimensional code through a camera on the second equipment.
Optionally, the second device is a mobile phone.
According to a fifth aspect of embodiments of the present invention, there is provided a system for sharing a network, the system including a first device and a second device;
the first device is configured to open a first network channel and generate indication information, where the indication information includes first connection information and sharing request information, the first connection information is information required for connecting to the first device through the first network channel, and the sharing request information is used to request a shared network; connecting to a second device through a second network channel according to the received second connection information, and accessing the internet by using a network sharing function of the second device;
the second device is used for acquiring the indication information; and according to the sharing request information, sending the second connection information to the first equipment through the first network channel by using the first connection information, starting the second network channel, and starting a network sharing function, wherein the second connection information is information required for connecting to the second equipment through the second network channel.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the present invention, the second device (taking a mobile phone as an example) is connected to the first device (taking an in-vehicle device as an example) according to the indication information (for example, the two-dimensional code) of the first device, and the connection thus established may be referred to as an initial connection, where the mobile phone serves as a connecting party and the in-vehicle device serves as a connected party, and the initial connection is used for information transfer and is prepared for a secondary connection. And then establishing a secondary connection, wherein the role reversal occurs in the secondary connection, namely the mobile phone becomes a connected party and the vehicle-mounted equipment becomes a connecting party at the moment. After the vehicle-mounted equipment is connected to the mobile phone, the internet surfing function of the mobile phone can be shared. By means of the 'twice connection' and the 'role reversal', the vehicle-mounted equipment end can be operated in a pure software mode, namely, the existing hardware is utilized, the requirement of a camera is completely eliminated, and the hardware expense is avoided being increased; meanwhile, a user can automatically complete a series of next operations by scanning once with a mobile phone at the beginning, the two devices automatically perform role switching without inputting manual operation steps such as passwords, automation is realized, efficiency is improved, user experience is improved, and the technical problems that operation is convenient and fast and hardware overhead cannot be simultaneously considered when a network is shared are satisfactorily solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
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 description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise. Furthermore, these descriptions should not be construed as limiting the embodiments, wherein elements having the same reference number designation are identified as similar elements throughout the figures, and the drawings are not to scale unless otherwise specified.
FIG. 1 is a flow chart illustrating a method of sharing a network in accordance with an exemplary embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a first device generating a two-dimensional code according to an exemplary embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a second device scanning a two-dimensional code according to an exemplary embodiment of the invention;
FIG. 4 is a schematic diagram illustrating a primary connection according to an exemplary embodiment of the present invention;
fig. 5 is a schematic diagram illustrating secondary connectivity and shared surfing in accordance with an exemplary embodiment of the present invention;
FIG. 6 is a flow chart illustrating a method of sharing a network in accordance with an exemplary embodiment of the present invention;
FIG. 7 is a flow chart illustrating a method of sharing a network in accordance with an exemplary embodiment of the present invention;
fig. 8 is a signaling diagram illustrating a method of sharing a network according to an exemplary embodiment of the invention;
FIG. 9 is a schematic diagram illustrating an apparatus for sharing a network in accordance with an exemplary embodiment of the present invention;
FIG. 10 is a schematic diagram illustrating an apparatus for sharing a network according to an exemplary embodiment of the present invention;
fig. 11 is a schematic diagram illustrating a system for sharing a network according to an exemplary embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method of sharing a network according to an exemplary embodiment of the present invention. The method may be used for a first device and a second device. As an example, the first device may be an in-vehicle device, the second device may be a mobile phone, and the like.
Referring to fig. 1, the method may include the steps of:
step S101, the first device opens a first network channel, and generates indication information, where the indication information includes first connection information and sharing request information, the first connection information is information required for connecting to the first device through the first network channel, and the sharing request information is used for requesting a sharing network.
The embodiment of the present invention is not limited to the specific form of the first network channel, and those skilled in the art may select and design the first network channel according to different requirements/different scenarios, and these choices and designs may be used herein without departing from the spirit and scope of the present invention.
As an example, the network format of the first network channel may be Wi-Fi or Bluetooth, etc. If Wi-Fi is taken as an example, the first device may create a Wi-Fi hotspot as a first network channel, so that other devices may connect to the device.
For a specific form of the indication information, the embodiment of the present invention is also not limited, and as an example, in this embodiment or some other embodiments of the present invention, the carrying manner of the indication information may be:
two-dimensional codes, bar codes or near field communication NFC, etc.
Taking a two-dimensional code as an example, when the bearing mode of the indication information is the two-dimensional code:
the generating, by the first device, the indication information may specifically include:
the first equipment displays the indication information on a screen of the first equipment in a two-dimensional code mode.
As an example, refer to fig. 2, where fig. 2 is a schematic diagram of a first device generating a two-dimensional code according to an exemplary embodiment of the present invention. In fig. 2, 201 is an in-vehicle device, which is a first device, 2011 is a screen of the in-vehicle device, and a two-dimensional code 2012 is displayed on the screen 2011 for being read by other devices.
As an example, when the network format of the first network channel is Wi-Fi, the first connection information may include the following field contents:
access point name, band, security type, password, etc.
Step S102, the second device acquires the indication information.
If the indication information is a two-dimensional code, for example, the obtaining, by the second device, the indication information may specifically include:
and the second equipment reads the two-dimensional code through a camera on the second equipment.
As an example, refer to fig. 3, where fig. 3 is a schematic diagram illustrating a second device scanning a two-dimensional code according to an exemplary embodiment of the present invention. In fig. 3, 301 is a second device, i.e. a mobile phone, which can read a two-dimensional code displayed on a screen of a first device through its own camera.
Step S103, the second device sends second connection information to the first device through the first network channel by using the first connection information according to the sharing request information, and opens a second network channel to start a network sharing function, where the second connection information is information required for connecting to the second device through the second network channel.
The embodiment of the present invention is not limited to the specific form of the second network channel, and various forms of networks may be used herein without departing from the spirit and scope of the present invention.
If Wi-Fi is taken as an example, when the network type of the second network channel is Wi-Fi, the second connection information may specifically include the following field contents:
access point name, band, security type, password, etc.
As an example, refer to fig. 4, where fig. 4 is a schematic diagram of a primary connection according to an exemplary embodiment of the present invention, and in fig. 4, 401 is a first network channel, and after the mobile phone is connected to the in-vehicle device through the first network channel, the second connection information 4011 may be sent to the in-vehicle device, so as to perform role reversal and secondary connection.
And step S104, the first device is connected to the second device through the second network channel according to the received second connection information, and accesses the Internet by using the network sharing function of the second device.
As an example, refer to fig. 5, where fig. 5 is a schematic diagram illustrating a secondary connection and a shared internet access according to an exemplary embodiment of the present invention. In fig. 5, the in-vehicle device is connected to the mobile phone through the second network channel 501, and accesses the internet by means of the data network function of the mobile phone through network sharing.
In addition, when the first network channel and the second network channel are of different network systems, for example, the former is Wi-Fi and the latter is bluetooth, or the former is bluetooth and the latter is Wi-Fi, the first network channel and the second network channel may coexist. However, when the first network channel and the second network channel are of the same network type, in order to avoid a collision, the first network channel generally needs to be closed first, and the second network channel can be used, so as to illustrate, when the network types of the first network channel and the second network channel are both Wi-Fi:
before the second device opens the second network channel, the method may further include: the second equipment disconnects the connection established with the first equipment through the first network channel;
before the first device connects to the second device over the second network channel, the method further comprises: the first device closes the first network channel.
In this embodiment, the second device (taking a mobile phone as an example) is connected to the first device (taking an in-vehicle device as an example) according to the indication information (for example, the two-dimensional code) of the first device, so that the established connection may be referred to as an initial connection, where the mobile phone serves as a connecting party and the in-vehicle device serves as a connected party, and the initial connection is used for information transfer and is prepared for a secondary connection. And then establishing a secondary connection, wherein the role reversal occurs in the secondary connection, namely the mobile phone becomes a connected party and the vehicle-mounted equipment becomes a connecting party at the moment. After the vehicle-mounted equipment is connected to the mobile phone, the internet surfing function of the mobile phone can be shared. With the help of "twice connection" and "role reversal" like this, the mobile unit end is with the mode of pure software, also utilize existing hardware, can operate, there is not the camera demand completely, hardware overhead has been avoided increasing, simultaneously, the user once can accomplish following a series of operations automatically with the cell-phone scanning when beginning, two equipment carry out the role conversion automatically, need not to input manual operation steps such as password, the automation has been realized, efficiency is improved, user experience is promoted, the simple operation and the technical problem that hardware overhead can't be compromise simultaneously when sharing the network have satisfactorily been solved.
The present invention will be described below from the first device side and the second device side, respectively.
Fig. 6 is a flowchart illustrating a method of sharing a network according to an exemplary embodiment of the present invention. The method may be used for a first device. As an example, the first device may be an in-vehicle device.
Referring to fig. 6, the method may include the steps of:
step S601, a first network channel is opened, and indication information is generated, where the indication information includes first connection information and sharing request information, the first connection information is information required for connecting to the first device through the first network channel, and the sharing request information is used to request a sharing network.
As an example, the network format of the first network channel may be Wi-Fi or Bluetooth, etc.
As an example, the indication information may be carried in a manner of:
two-dimensional codes, bar codes or near field communication NFC.
When the bearing mode of the indication information is a two-dimensional code:
the generating the indication information may specifically include:
and displaying the indication information on a screen of the first equipment in a two-dimensional code form.
Step S602, receiving second connection information sent by a second device through the first network channel, where the second device is a device that acquires the indication information, and the second connection information is information required to connect to the second device through a second network channel opened by the second device.
Step S603, connecting to the second device through the second network channel according to the second connection information, and accessing to the internet using a network sharing function of the second device.
Fig. 7 is a flowchart illustrating a method of sharing a network according to an exemplary embodiment of the present invention. The method may be used for a second device. As an example, the second device may be a cell phone or the like.
Referring to fig. 7, the method may include the steps of:
step S701, acquiring indication information, where the indication information is generated by a first device, the indication information includes first connection information and sharing request information, the first connection information is information required to connect to the first device through a first network channel opened by the first device, and the sharing request information is used to request a sharing network.
As an example, the indication information may be carried in a manner of:
two-dimensional codes, bar codes or near field communication NFC.
When the bearing mode of the indication information is a two-dimensional code:
acquiring the indication information may specifically include:
and reading the two-dimensional code through a camera on the second equipment.
Step S702, according to the sharing request information, sending second connection information to the first device through the first network channel using the first connection information, and starting a second network channel to start a network sharing function, where the second connection information is information required to connect to the second device through the second network channel.
As an example, the network format of the second network channel may be Wi-Fi or Bluetooth, etc.
Step S703 of accepting a connection request for the first device to connect to the second device via the second network channel, and allowing the first device to use the network sharing function of the second device so that the first device accesses the internet.
In the embodiment of the present invention, the second device (taking a mobile phone as an example) is connected to the first device (taking an in-vehicle device as an example) according to the indication information (for example, the two-dimensional code) of the first device, and the connection thus established may be referred to as an initial connection, where the mobile phone serves as a connecting party and the in-vehicle device serves as a connected party, and the initial connection is used for information transfer and is prepared for a secondary connection. And then establishing a secondary connection, wherein the role reversal occurs in the secondary connection, namely the mobile phone becomes a connected party and the vehicle-mounted equipment becomes a connecting party at the moment. After the vehicle-mounted equipment is connected to the mobile phone, the internet surfing function of the mobile phone can be shared. With the help of "twice connection" and "role reversal" like this, the mobile unit end is with the mode of pure software, also utilize existing hardware, can operate, there is not the camera demand completely, hardware overhead has been avoided increasing, simultaneously, the user once can accomplish following a series of operations automatically with the cell-phone scanning when beginning, two equipment carry out the role conversion automatically, need not to input manual operation steps such as password, the automation has been realized, efficiency is improved, user experience is promoted, the simple operation and the technical problem that hardware overhead can't be compromise simultaneously when sharing the network have satisfactorily been solved.
The scheme of the present invention is further described with reference to specific scenarios.
Fig. 8 is a signaling diagram illustrating a method of sharing a network according to an exemplary embodiment of the present invention. The first device is a vehicle-mounted device, and the second device is a mobile phone.
The method comprises the following steps:
step S801, the user requests sharing of the mobile phone network. The user can select the function of sharing the mobile phone data internet on the operation interface of the vehicle-mounted equipment.
And S802, creating a Wi-Fi hotspot and generating a two-dimensional code. The vehicle-mounted equipment starts the Wi-Fi hotspot and generates a two-dimensional code, wherein the two-dimensional code comprises information (such as an AP name, a wave band, a security type, a password and the like) required by connection of the Wi-Fi hotspot of the vehicle-mounted equipment and request information, namely a shared mobile phone data internet access request.
In step S803, the user scans the two-dimensional code using the mobile phone camera.
Step S804, analyzing and acquiring information contained in the two-dimensional code: and the vehicle-mounted equipment Wi-Fi hotspot information and the shared mobile phone data internet access request.
And step S805, connecting the mobile phone with the vehicle-mounted equipment according to the Wi-Fi hotspot information of the vehicle-mounted equipment.
And initial connection is established, and the mobile phone and the vehicle-mounted equipment can start communication.
Step S806, the mobile phone sends the Wi-Fi hotspot information (AP name, band, security type, password, etc.) of the mobile phone to the vehicle-mounted device through the current initial connection. In addition, the mobile phone can also send a Role Switch request to the vehicle-mounted equipment to request the vehicle-mounted equipment to execute the Role Switch operation. Certainly, in some other embodiments, the Role Switch operation may not be sent, but the in-vehicle device automatically triggers the Role Switch operation after receiving the mobile Wi-Fi hotspot information, which is not limited in this invention.
And step S807, the mobile phone disconnects the initial connection and starts a Wi-Fi hotspot of the mobile phone. And waiting for the connection of the vehicle-mounted equipment.
And step S808, the vehicle-mounted equipment closes the Wi-Fi hotspot of the vehicle-mounted equipment.
And step S809, the vehicle-mounted equipment uses the mobile phone Wi-Fi hotspot information to connect with the mobile phone Wi-Fi hotspot.
Therefore, the secondary connection is established, and the vehicle-mounted equipment can start to surf the internet through the Wi-Fi hot spot of the mobile phone.
In this embodiment, the second device (taking a mobile phone as an example) is connected to the first device (taking an in-vehicle device as an example) according to the indication information (for example, the two-dimensional code) of the first device, so that the established connection may be referred to as an initial connection, where the mobile phone serves as a connecting party and the in-vehicle device serves as a connected party, and the initial connection is used for information transfer and is prepared for a secondary connection. And then establishing a secondary connection, wherein the role reversal occurs in the secondary connection, namely the mobile phone becomes a connected party and the vehicle-mounted equipment becomes a connecting party at the moment. After the vehicle-mounted equipment is connected to the mobile phone, the internet surfing function of the mobile phone can be shared. With the help of "twice connection" and "role reversal" like this, the mobile unit end is with the mode of pure software, also utilize existing hardware, can operate, there is not the camera demand completely, hardware overhead has been avoided increasing, simultaneously, the user once can accomplish following a series of operations automatically with the cell-phone scanning when beginning, two equipment carry out the role conversion automatically, need not to input manual operation steps such as password, the automation has been realized, efficiency is improved, user experience is promoted, the simple operation and the technical problem that hardware overhead can't be compromise simultaneously when sharing the network have satisfactorily been solved.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Fig. 9 is a schematic diagram illustrating a network sharing apparatus according to an exemplary embodiment of the present invention. The apparatus may be for a first device. As an example, the first device may be an in-vehicle device or the like.
Referring to fig. 9, the apparatus may include:
a first network channel opening unit 901, configured to open a first network channel.
An indication information generating unit 902, configured to generate indication information, where the indication information includes first connection information and sharing request information, the first connection information is information required to connect to the first device through the first network channel, and the sharing request information is used to request a sharing network.
A second connection information receiving unit 903, configured to receive second connection information sent by a second device through the first network channel, where the second device is a device that acquires the indication information, and the second connection information is information required to connect to the second device through a second network channel opened by the second device.
A second network channel connection unit 904, configured to connect to the second device through the second network channel according to the second connection information.
A network access unit 905, configured to access the internet using the network sharing function of the second device.
By way of example, in this or some other embodiment of the invention:
the network system of the first network channel is Wi-Fi or Bluetooth.
As an example, in this embodiment or some other embodiments of the present invention, the indication information is carried in a manner that:
two-dimensional codes, bar codes or near field communication NFC.
As an example, in this embodiment or some other embodiments of the present invention, when the carrying manner of the indication information is a two-dimensional code:
the indication information generating unit is used for:
and displaying the indication information on a screen of the first equipment in a two-dimensional code form.
Fig. 10 is a schematic diagram illustrating a network sharing apparatus according to an exemplary embodiment of the present invention. The apparatus may be used in a second device. As an example, the second device may be a cell phone or the like.
Referring to fig. 10, the apparatus may include:
an indication information obtaining unit 1001, configured to obtain indication information, where the indication information is generated by a first device, the indication information includes first connection information and sharing request information, the first connection information is information required to connect to the first device through a first network channel opened by the first device, and the sharing request information is used to request a sharing network.
A second connection information sending unit 1002, configured to send, according to the sharing request information, second connection information to the first device through the first network channel by using the first connection information, where the second connection information is information required to be connected to the second device through a second network channel.
A second network channel starting unit 1003, configured to start the second network channel.
A network service unit 1004, configured to start a network sharing function, accept a connection request for the first device to connect to the second device via the second network channel, and allow the first device to use the network sharing function of the second device to enable the first device to access the internet.
By way of example, in this or some other embodiment of the invention:
and the network standard of the second network channel is Wi-Fi or Bluetooth.
As an example, in this embodiment or some other embodiments of the present invention, the indication information is carried in a manner that:
two-dimensional codes, bar codes or near field communication NFC.
As an example, in this embodiment or some other embodiments of the present invention, when the carrying manner of the indication information is a two-dimensional code:
the indication information acquisition unit is used for:
and reading the two-dimensional code through a camera on the second equipment.
Regarding the apparatus in the foregoing embodiments, the specific manner in which each unit \ module executes operations has been described in detail in the embodiments of the related method, and is not described herein again.
In this embodiment, the second device (taking a mobile phone as an example) is connected to the first device (taking an in-vehicle device as an example) according to the indication information (for example, the two-dimensional code) of the first device, so that the established connection may be referred to as an initial connection, where the mobile phone serves as a connecting party and the in-vehicle device serves as a connected party, and the initial connection is used for information transfer and is prepared for a secondary connection. And then establishing a secondary connection, wherein the role reversal occurs in the secondary connection, namely the mobile phone becomes a connected party and the vehicle-mounted equipment becomes a connecting party at the moment. After the vehicle-mounted equipment is connected to the mobile phone, the internet surfing function of the mobile phone can be shared. With the help of "twice connection" and "role reversal" like this, the mobile unit end is with the mode of pure software, also utilize existing hardware, can operate, there is not the camera demand completely, hardware overhead has been avoided increasing, simultaneously, the user once can accomplish following a series of operations automatically with the cell-phone scanning when beginning, two equipment carry out the role conversion automatically, need not to input manual operation steps such as password, the automation has been realized, efficiency is improved, user experience is promoted, the simple operation and the technical problem that hardware overhead can't be compromise simultaneously when sharing the network have satisfactorily been solved.
Fig. 11 is a schematic diagram illustrating a system for sharing a network according to an exemplary embodiment of the present invention. The system comprises a first device 1101 and a second device 1102. As an example, the first device may be an in-vehicle device, the second device may be a mobile phone, and the like.
The first device 1101 is configured to open a first network channel and generate indication information, where the indication information includes first connection information and sharing request information, the first connection information is information required to connect to the first device through the first network channel, and the sharing request information is used to request a shared network; connecting to a second device through a second network channel according to the received second connection information, and accessing the internet by using a network sharing function of the second device;
the second device 1102 is configured to obtain the indication information; and according to the sharing request information, sending the second connection information to the first equipment through the first network channel by using the first connection information, starting the second network channel, and starting a network sharing function, wherein the second connection information is information required for connecting to the second equipment through the second network channel.
As an example, the network format of the first network channel may be Wi-Fi or Bluetooth, etc. If Wi-Fi is taken as an example, the first device may create a Wi-Fi hotspot as a first network channel, so that other devices may connect to the device.
For a specific form of the indication information, the embodiment of the present invention is also not limited, and as an example, in this embodiment or some other embodiments of the present invention, the carrying manner of the indication information may be:
two-dimensional codes, bar codes or near field communication NFC, etc.
Taking a two-dimensional code as an example, when the bearing mode of the indication information is the two-dimensional code:
the generating, by the first device, the indication information may specifically include:
the first equipment displays the indication information on a screen of the first equipment in a two-dimensional code mode.
As an example, when the network format of the first network channel is Wi-Fi, the first connection information may include the following field contents:
access point name, band, security type, password, etc.
If the indication information is a two-dimensional code, for example, the obtaining, by the second device, the indication information may specifically include:
and the second equipment reads the two-dimensional code through a camera on the second equipment.
The embodiment of the present invention is not limited to the specific form of the second network channel, and various forms of networks may be used herein without departing from the spirit and scope of the present invention.
If Wi-Fi is taken as an example, when the network type of the second network channel is Wi-Fi, the second connection information may specifically include the following field contents:
access point name, band, security type, password, etc.
In this embodiment, the second device (taking a mobile phone as an example) is connected to the first device (taking an in-vehicle device as an example) according to the indication information (for example, the two-dimensional code) of the first device, so that the established connection may be referred to as an initial connection, where the mobile phone serves as a connecting party and the in-vehicle device serves as a connected party, and the initial connection is used for information transfer and is prepared for a secondary connection. And then establishing a secondary connection, wherein the role reversal occurs in the secondary connection, namely the mobile phone becomes a connected party and the vehicle-mounted equipment becomes a connecting party at the moment. After the vehicle-mounted equipment is connected to the mobile phone, the internet surfing function of the mobile phone can be shared. With the help of "twice connection" and "role reversal" like this, the mobile unit end is with the mode of pure software, also utilize existing hardware, can operate, there is not the camera demand completely, hardware overhead has been avoided increasing, simultaneously, the user once can accomplish following a series of operations automatically with the cell-phone scanning when beginning, two equipment carry out the role conversion automatically, need not to input manual operation steps such as password, the automation has been realized, efficiency is improved, user experience is promoted, the simple operation and the technical problem that hardware overhead can't be compromise simultaneously when sharing the network have satisfactorily been solved.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (28)

1. A method for sharing a network, the method being for a first device and a second device, the method comprising:
the first device opens a first network channel and generates indication information, wherein the indication information comprises first connection information and sharing request information, the first connection information is information required by being connected to the first device through the first network channel, and the sharing request information is used for requesting a sharing network;
the second equipment acquires the indication information;
the second device sends second connection information to the first device through the first network channel by using the first connection information according to the sharing request information, and opens a second network channel to start a network sharing function, wherein the second connection information is information required for connecting to the second device through the second network channel;
and the first equipment is connected to the second equipment through the second network channel according to the received second connection information, and accesses the Internet by using the network sharing function of the second equipment.
2. The method of claim 1, wherein the indication information is carried in a manner of:
two-dimensional codes, bar codes or near field communication NFC.
3. The method of claim 2, wherein when the indication information is carried in a two-dimensional code:
the first device generates indication information, including:
the first equipment displays the indication information on a screen of the first equipment in a two-dimensional code form;
the second device acquires the indication information, and the method comprises the following steps:
and the second equipment reads the two-dimensional code through a camera on the second equipment.
4. The method of claim 1, wherein:
the network system of the first network channel is Wi-Fi or Bluetooth;
and the network standard of the second network channel is Wi-Fi or Bluetooth.
5. The method according to claim 4, wherein when the network format of the first network channel is Wi-Fi, the following field contents are included in the first connection information:
access point name, band, security type, password;
when the network type of the second network channel is Wi-Fi, the second connection information includes the following field contents:
access point name, band, security type, password.
6. The method of claim 4, wherein when the network formats of the first network channel and the second network channel are both Wi-Fi:
before the second device opens the second network channel, the method further comprises: the second equipment disconnects the connection established with the first equipment through the first network channel;
before the first device connects to the second device over the second network channel, the method further comprises: the first device closes the first network channel.
7. The method according to any one of claims 1 to 6, wherein the first device is a vehicle-mounted device and the second device is a mobile phone.
8. A method for sharing a network, the method for a first device, the method comprising:
opening a first network channel, and generating indication information, wherein the indication information includes first connection information and sharing request information, the first connection information is information required for connecting to the first device through the first network channel, and the sharing request information is used for requesting a sharing network;
receiving second connection information sent by a second device through the first network channel, wherein the second device is a device for acquiring the indication information, and the second connection information is information required for connecting to the second device through a second network channel started by the second device;
and connecting to the second device through the second network channel according to the second connection information, and accessing the internet using a network sharing function of the second device.
9. The method of claim 8, wherein:
the network system of the first network channel is Wi-Fi or Bluetooth.
10. The method of claim 8, wherein the indication information is carried in a manner of:
two-dimensional codes, bar codes or near field communication NFC.
11. The method according to claim 10, wherein when the indication information is carried in a two-dimensional code:
the generating indication information includes:
and displaying the indication information on a screen of the first equipment in a two-dimensional code form.
12. The method according to any one of claims 8 to 11, wherein the first device is an on-board device.
13. A method of sharing a network, the method for a second device, the method comprising:
acquiring indication information, wherein the indication information is generated by a first device, the indication information includes first connection information and sharing request information, the first connection information is information required for connecting to the first device through a first network channel opened by the first device, and the sharing request information is used for requesting a sharing network;
according to the sharing request information, second connection information is sent to the first equipment through the first network channel by using the first connection information, a second network channel is opened, and a network sharing function is started, wherein the second connection information is information required for connecting to the second equipment through the second network channel;
accepting a connection request of the first device to connect to the second device via the second network channel, and allowing the first device to use a network sharing function of the second device to enable the first device to access the internet.
14. The method of claim 13, wherein:
and the network standard of the second network channel is Wi-Fi or Bluetooth.
15. The method of claim 13, wherein the indication information is carried in a manner of:
two-dimensional codes, bar codes or near field communication NFC.
16. The method of claim 15, wherein when the indication information is carried in a two-dimensional code:
acquiring the indication information, including:
and reading the two-dimensional code through a camera on the second equipment.
17. The method of any one of claims 13 to 16, wherein the second device is a mobile phone.
18. An apparatus for sharing a network, the apparatus being for a first device, the apparatus comprising:
a first network channel opening unit, configured to open a first network channel;
an indication information generating unit, configured to generate indication information, where the indication information includes first connection information and sharing request information, the first connection information is information required to be connected to the first device through the first network channel, and the sharing request information is used to request a sharing network;
a second connection information receiving unit, configured to receive second connection information sent by a second device through the first network channel, where the second device is a device that acquires the indication information, and the second connection information is information required to connect to the second device through a second network channel opened by the second device;
a second network channel connection unit, configured to connect to the second device through the second network channel according to the second connection information;
and the network access unit is used for accessing the Internet by using the network sharing function of the second equipment.
19. The apparatus of claim 18, wherein:
the network system of the first network channel is Wi-Fi or Bluetooth.
20. The apparatus of claim 18, wherein the indication information is carried in a manner of:
two-dimensional codes, bar codes or near field communication NFC.
21. The apparatus of claim 20, wherein when the indication information is carried in a two-dimensional code:
the indication information generating unit is used for:
and displaying the indication information on a screen of the first equipment in a two-dimensional code form.
22. The apparatus of any one of claims 18 to 21, wherein the first device is an on-board device.
23. An apparatus for sharing a network, the apparatus being for a second device, the apparatus comprising:
an indication information obtaining unit, configured to obtain indication information, where the indication information is generated by a first device, the indication information includes first connection information and sharing request information, the first connection information is information required to connect to the first device through a first network channel opened by the first device, and the sharing request information is used to request a sharing network;
a second connection information sending unit, configured to send, according to the sharing request information, second connection information to the first device through the first network channel using the first connection information, where the second connection information is information required to connect to the second device through a second network channel;
a second network channel opening unit, configured to open the second network channel;
and the network service unit is used for starting a network sharing function, receiving a connection request of the first equipment for connecting to the second equipment through the second network channel, and allowing the first equipment to use the network sharing function of the second equipment so as to enable the first equipment to access the Internet.
24. The apparatus of claim 23, wherein:
and the network standard of the second network channel is Wi-Fi or Bluetooth.
25. The apparatus of claim 23, wherein the indication information is carried in a manner of:
two-dimensional codes, bar codes or near field communication NFC.
26. The apparatus of claim 25, wherein when the indication information is carried in a two-dimensional code:
the indication information acquisition unit is used for:
and reading the two-dimensional code through a camera on the second equipment.
27. The apparatus of any one of claims 23 to 26, wherein the second device is a mobile phone.
28. A system for sharing a network, the system comprising a first device and a second device;
the first device is configured to open a first network channel and generate indication information, where the indication information includes first connection information and sharing request information, the first connection information is information required for connecting to the first device through the first network channel, and the sharing request information is used to request a shared network; connecting to a second device through a second network channel according to the received second connection information, and accessing the internet by using a network sharing function of the second device;
the second device is used for acquiring the indication information; and according to the sharing request information, sending the second connection information to the first equipment through the first network channel by using the first connection information, starting the second network channel, and starting a network sharing function, wherein the second connection information is information required for connecting to the second equipment through the second network channel.
CN201811382957.1A 2018-11-20 2018-11-20 Method, device and system for sharing network Pending CN111200860A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811382957.1A CN111200860A (en) 2018-11-20 2018-11-20 Method, device and system for sharing network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811382957.1A CN111200860A (en) 2018-11-20 2018-11-20 Method, device and system for sharing network

Publications (1)

Publication Number Publication Date
CN111200860A true CN111200860A (en) 2020-05-26

Family

ID=70747436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811382957.1A Pending CN111200860A (en) 2018-11-20 2018-11-20 Method, device and system for sharing network

Country Status (1)

Country Link
CN (1) CN111200860A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104244455A (en) * 2014-09-01 2014-12-24 小米科技有限责任公司 Wireless local area network access information sharing method and device
CN104853430A (en) * 2015-05-11 2015-08-19 樊继方 Vehicle-mounted device, mobile terminal and connection method of vehicle-mounted device and mobile terminal
CN105188013A (en) * 2015-06-26 2015-12-23 北京锤子数码科技有限公司 Network hotspot sharing method, device and system
CN105764159A (en) * 2016-02-22 2016-07-13 腾讯科技(深圳)有限公司 Network connection method, network connection system and terminals

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104244455A (en) * 2014-09-01 2014-12-24 小米科技有限责任公司 Wireless local area network access information sharing method and device
CN104853430A (en) * 2015-05-11 2015-08-19 樊继方 Vehicle-mounted device, mobile terminal and connection method of vehicle-mounted device and mobile terminal
CN105188013A (en) * 2015-06-26 2015-12-23 北京锤子数码科技有限公司 Network hotspot sharing method, device and system
CN105764159A (en) * 2016-02-22 2016-07-13 腾讯科技(深圳)有限公司 Network connection method, network connection system and terminals

Similar Documents

Publication Publication Date Title
KR101642203B1 (en) Wireless local area network authentication method and mobile terminal
CN101541105B (en) Methods for processing apparatus originated communication request and communication apparatuses utilizing the same
EP3200549A1 (en) Method and device for wireless communication between communication terminals
KR101117712B1 (en) Communication terminal for multiple standby and method for operating thereof
US10477030B2 (en) LTE cellular mobile network access system and corresponding communication method
CN108810123B (en) Method and apparatus for provisioning mobile cellular network services
CN112738781B (en) Method, device, terminal, USIM and medium for initiating proximity service
CN104601715A (en) File sharing method and system and mobile terminal based on two-dimension code
CN102307342A (en) The make a start processing method of communication request of the device of communicator and communicator
CN105471940A (en) Data processing method, data transmitting and receiving terminal and data transmission system
CN105592019A (en) Method for bidirectional access to application between dual execution environments
EP3585106A1 (en) Method and apparatus for processing service set identifier, and terminal
CN113994762B (en) Method and device for associating session
US9860370B2 (en) Operating environment setting system, portable termina, repay device and operating environment setting program
CN111200860A (en) Method, device and system for sharing network
CN213092318U (en) Sweep a yard device
KR100729928B1 (en) Method and apparatus for providing roaming service of international call and mobile terminal for the same
KR101901717B1 (en) Method for transmitting text message in multi sim mobile terminal
CN106850862B (en) Method and device for migrating data from sending end to receiving end
CN113938558B (en) Communication method, electronic device, and computer-readable storage medium
KR20120124323A (en) Apparatus having Universal Integrated Circuit card and File registration Method and Peer-to-Peer Transmission Method using the same
CN109040503B (en) Traffic sharing method and server
JP4160519B2 (en) Information transmission / reception system
CN115175108A (en) Communication method, electronic equipment and storage medium for cooperation of separated carrier and communication terminal
CN117544815A (en) Wireless screen throwing method and system

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: 20200526

RJ01 Rejection of invention patent application after publication