CN114501389B - Mobile terminal, network sharing method and storage medium - Google Patents
Mobile terminal, network sharing method and storage medium Download PDFInfo
- Publication number
- CN114501389B CN114501389B CN202210154691.5A CN202210154691A CN114501389B CN 114501389 B CN114501389 B CN 114501389B CN 202210154691 A CN202210154691 A CN 202210154691A CN 114501389 B CN114501389 B CN 114501389B
- Authority
- CN
- China
- Prior art keywords
- sim card
- flow
- vehicle
- information
- mounted terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000012545 processing Methods 0.000 claims description 45
- 238000004891 communication Methods 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 10
- 230000006870 function Effects 0.000 description 44
- 239000010410 layer Substances 0.000 description 19
- 238000010586 diagram Methods 0.000 description 13
- 230000003993 interaction Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000001364 causal effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000012792 core layer Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/40—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
- H04W4/48—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- 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/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/20—Transfer of user or subscriber data
- H04W8/205—Transfer to or from user equipment or user record carrier
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Telephone Function (AREA)
Abstract
The application provides a mobile terminal, a network sharing method and a storage medium, and relates to the technical field of Internet of vehicles. The mobile terminal can be connected with the vehicle-mounted terminal through Bluetooth, and if the Bluetooth connection is successful, the mobile terminal and the vehicle-mounted terminal can enter a network sharing state; the network sharing state refers to a wireless signal connection network provided by the vehicle-mounted terminal through the mobile terminal or a wireless signal connection network provided by the mobile terminal through the vehicle-mounted terminal. By the method, the mobile terminal and the vehicle-mounted terminal can automatically enter a network sharing state, so that a user is helped to save a large amount of time.
Description
Technical Field
The application relates to the technical field of internet of vehicles, in particular to a mobile terminal, a network sharing method and a storage medium.
Background
With the continuous development of the internet of vehicles technology, the interaction scenario between the vehicle-mounted terminal and the mobile terminal is increasing, for example, the vehicle-mounted terminal is connected with a network through a wireless signal provided by the mobile terminal. In an actual application scene, in the process that the vehicle-mounted terminal is connected with a network through a wireless signal provided by the mobile terminal, a user is not only required to start a network sharing function of the mobile terminal, but also provides a wireless signal for the vehicle-mounted terminal; the user is also required to manually operate the vehicle-mounted terminal to the wireless signal, and the operation is complicated, so that a great deal of time is wasted for the user.
Disclosure of Invention
In order to solve the problems in the prior art, the embodiment of the application provides a mobile terminal, a network sharing method and a storage medium, which can enable the mobile terminal and a vehicle-mounted terminal to automatically enter a network sharing state, thereby helping a user save a great amount of time.
In a first aspect, an embodiment of the present application provides a mobile terminal, including: the system comprises a Bluetooth module, a wireless fidelity Wi-Fi module and a processing module;
the Bluetooth module is configured to establish Bluetooth communication connection with the vehicle-mounted terminal;
the Wi-Fi module is configured to establish wireless communication connection with the vehicle-mounted terminal;
The processing module is configured to carry out Bluetooth connection with the vehicle-mounted terminal through the Bluetooth module; if the Bluetooth connection is successful, the Bluetooth connection and the vehicle-mounted terminal enter a network sharing state through a Wi-Fi module; the network sharing state refers to a wireless signal connection network provided by the vehicle-mounted terminal through the mobile terminal or a wireless signal connection network provided by the mobile terminal through the vehicle-mounted terminal.
In one possible implementation, the processing module is specifically configured to:
Receiving using information of a second user identification SIM card sent by the vehicle-mounted terminal through Bluetooth; the second SIM card is an SIM card contained in the vehicle-mounted terminal;
If the usage information of the second SIM card indicates that the second SIM card is in an unused state or the second SIM card has no residual flow, starting a network sharing function of the mobile terminal so as to provide wireless signals for the vehicle-mounted terminal, and enabling the vehicle-mounted terminal to be connected with a network through the wireless signals provided by the mobile terminal.
In one possible implementation, the processing module is further configured to:
If the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual traffic, acquiring traffic information of a first SIM card;
if the flow information of the first SIM card contains the directional flow information associated with the currently running application in the vehicle-mounted terminal, starting the network sharing function of the mobile terminal; the directional traffic information associated with the currently running application refers to traffic allocated to the currently running application, which cannot be used by applications other than the currently running application when connecting to a network.
In one possible implementation, the processing module is further configured to:
If the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual flow, acquiring flow information of the second SIM card from the usage information of the second SIM card;
If the flow information of the second SIM card contains the directional flow information related to the application currently running in the mobile terminal, connecting the network through a wireless signal provided by the vehicle-mounted terminal; the directional traffic information associated with the currently running application refers to traffic allocated to the currently running application, which cannot be used by applications other than the currently running application when connecting to a network.
In one possible implementation, the processing module is specifically configured to:
If the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual flow, respectively acquiring the used flow of the first SIM card and a first flow threshold value, and the used flow of the second SIM card and a second flow threshold value contained in the usage information of the second SIM card;
If the used flow of the first SIM card is lower than the first flow threshold and the used flow of the second SIM card is not lower than the second flow threshold, starting a network sharing function of the mobile terminal;
And if the used flow of the second SIM card is lower than the second flow threshold and the used flow of the first SIM card is not lower than the first flow threshold, connecting a network through a wireless signal provided by the vehicle-mounted terminal.
In one possible implementation, the processing module is further configured to:
If the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual flow, acquiring the flow information of the first SIM card and acquiring the flow information of the second SIM card from the usage information of the second SIM card;
And if the flow information of the second SIM card contains the directional flow information related to the application currently running in the mobile terminal and the flow information of the first SIM card does not contain the directional flow information related to the application currently running in the mobile terminal, connecting the network through the wireless signal provided by the vehicle-mounted terminal.
In one possible implementation, the processing module is specifically configured to:
Sending a network sharing instruction to the vehicle-mounted terminal through Bluetooth; the network sharing instruction instructs the vehicle-mounted terminal to start a network sharing function and provide wireless signals for the mobile terminal;
and the wireless signal provided by the vehicle-mounted terminal is connected with a network.
In one possible implementation, the processing module is further configured to:
If the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual flow, acquiring the flow information of the first SIM card and acquiring the flow information of the second SIM card from the usage information of the second SIM card;
The flow information of the first SIM card comprises directional flow information associated with the application currently operated by the vehicle-mounted terminal, and the flow information of the second SIM card does not comprise directional flow information associated with the application currently operated by the vehicle-mounted terminal, so that a network sharing function of the mobile terminal is started; the directional traffic information associated with the currently running application refers to traffic allocated to the currently running application, which cannot be used by applications other than the currently running application when connecting to a network.
In a second aspect, an embodiment of the present application provides a network sharing method, applied to a mobile terminal, where the method includes:
bluetooth connection is carried out with the vehicle-mounted terminal;
if the Bluetooth connection is successful, the Bluetooth connection and the vehicle-mounted terminal enter a network sharing state; the network sharing state refers to a wireless signal connection network provided by the vehicle-mounted terminal through the mobile terminal or a wireless signal connection network provided by the mobile terminal through the vehicle-mounted terminal.
In a third aspect, an embodiment of the present application provides a network sharing apparatus, including:
the connection unit is connected with the vehicle-mounted terminal through Bluetooth;
The sharing unit is used for entering a network sharing state with the vehicle-mounted terminal if the Bluetooth connection is successful; the network sharing state refers to a wireless signal connection network provided by the vehicle-mounted terminal through the mobile terminal or a wireless signal connection network provided by the mobile terminal through the vehicle-mounted terminal.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having a computer program stored therein, which when executed by a processor, implements the method of the second aspect or any of the possible implementations of the second aspect.
In the embodiment of the application, the mobile terminal can be connected with the vehicle-mounted terminal through Bluetooth, and if the Bluetooth connection is successful, the mobile terminal and the vehicle-mounted terminal can enter a network sharing state; the network sharing state refers to a wireless signal connection network provided by the vehicle-mounted terminal through the mobile terminal or a wireless signal connection network provided by the mobile terminal through the vehicle-mounted terminal. By the method, the mobile terminal and the vehicle-mounted terminal can automatically enter a network sharing state, so that a user is helped to save a large amount of time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it will be apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application;
fig. 2 is a software architecture block diagram of a mobile terminal according to an embodiment of the present application;
Fig. 3 is a flowchart of a network sharing method according to an embodiment of the present application;
Fig. 4 is a flowchart of another network sharing method according to an embodiment of the present application;
FIG. 5 is a diagram of a selection interface for setting an application according to an embodiment of the present application;
FIG. 6 is a functional interface diagram of a driving mode according to an embodiment of the present application;
fig. 7 is a flowchart of a network sharing method according to an embodiment of the present application;
FIG. 8 is a flowchart illustrating another network sharing method according to an embodiment of the present application;
FIG. 9 is a flowchart illustrating another network sharing method according to an embodiment of the present application;
FIG. 10 is a flowchart illustrating another network sharing method according to an embodiment of the present application;
FIG. 11 is a flowchart illustrating another network sharing method according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a network sharing device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that, the application scenario described in the following embodiments of the present application is for more clearly describing the technical solution of the embodiments of the present application, and does not constitute a limitation on the technical solution provided by the embodiments of the present application, and those skilled in the art can know that, with the appearance of the new application scenario, the technical solution provided by the embodiments of the present application is also applicable to similar technical problems.
In order to enable a mobile terminal and a vehicle-mounted terminal to automatically enter a network sharing state, the embodiment of the application provides the mobile terminal, a network sharing method and a storage medium, wherein the mobile terminal can be connected with the vehicle-mounted terminal through Bluetooth; if the Bluetooth connection is successful, the mobile terminal and the vehicle-mounted terminal can enter a network sharing state; the network sharing state refers to a wireless signal connection network provided by the vehicle-mounted terminal through the mobile terminal or a wireless signal connection network provided by the mobile terminal through the vehicle-mounted terminal. By the method, the mobile terminal and the vehicle-mounted terminal can automatically enter a network sharing state, so that a user is helped to save a large amount of time.
The mobile terminal provided by the embodiment of the application can be portable equipment such as a mobile phone, wearable equipment, a tablet personal computer and the like. Fig. 1 is a block diagram schematically illustrating a hardware configuration of a mobile terminal according to an embodiment of the present application. It should be understood that the mobile terminal 100 shown in fig. 1 is only one example, and that the mobile terminal 100 may have more or fewer components than shown in fig. 1, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
As shown in fig. 1, the mobile terminal 100 includes: communication module 110, processing module 120, storage module 130, display module 140, input module 150, audio circuit 160, SIM card interface 170, and sensor 180.
The communication module 110 is configured to receive or send a call request, receive and send a signal during a call, and connect to a server to upload or download data. The communication module 110 may include an RF (radio frequency) circuit 111, a Wi-Fi (WIRELESS FIDELITY) module 112, and a bluetooth module 113.
The RF circuit 111 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, and may receive downlink data of the base station and then transmit the downlink data to the processing module 120 for processing; uplink data may be sent to the base station. In general, RF circuitry 111 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. The RF circuit 111 may receive electromagnetic waves from an antenna, filter, amplify, and the like the received electromagnetic waves, and transmit the electromagnetic waves to a modem processing module for demodulation. The RF circuit 111 may amplify the signal modulated by the modem processing module, and convert the signal into electromagnetic waves through an antenna to radiate the electromagnetic waves. In some embodiments, at least some of the functional blocks of RF circuitry 111 may be disposed in processing block 120. In some embodiments, at least some of the functional modules of RF circuitry 111 may be disposed in the same device as at least some of the modules of processing module 120. The RF circuitry 111 and antenna of the mobile terminal 100 are coupled such that the mobile terminal 100 may communicate with a network and other devices through wireless communication techniques.
Wi-Fi, which is a short-range wireless transmission technology, can help users to send and receive e-mail, browse web pages, access streaming media, etc. through the Wi-Fi module 112, and provides wireless broadband internet access to users. The Wi-Fi module 112 may connect to a router through which an external network is connected. The Wi-Fi module 112 may also connect to a server to upload or download data. The Wi-Fi module 112 may also be used to establish wireless communication with the vehicle-mounted terminal, and the mobile terminal may provide a wireless network for the vehicle-mounted terminal through the Wi-Fi module 112, or may be connected to the wireless network provided by the vehicle-mounted terminal through the Wi-Fi module 112, for example.
The bluetooth module 113 may be configured to establish bluetooth communication connection with at least one auxiliary device or at least one device to be configured to perform data interaction. In the embodiment of the application, the bluetooth module 113 may be used for data interaction between the mobile terminal and the vehicle-mounted terminal.
The memory module 130 may be used to store data or program codes used by the mobile terminal when operating. The processing module 120 performs various functions of the mobile terminal 100 and data processing by executing data or program codes stored in the memory module 130. The memory module 130 may include a high-speed random access memory module, and may also include a non-volatile memory module, such as at least one disk memory module, flash memory device, or other volatile solid-state memory module. The storage module 130 stores an operating system enabling the mobile terminal 100 to operate.
The display module 140 is used to display information input by a user or information provided to the user and a graphical user interface (GRAPHICAL USER INTERFACE, GUI) of various menus of the mobile terminal 100. In particular, the display module 140 may include a display module disposed on the front of the mobile terminal 100. The display module may be configured in the form of a liquid crystal display module, a light emitting diode, or the like. The display module 140 may be used to display an interface when the mobile terminal is operating.
The input module 150 may be used to receive numerical or character information input by a user, various operations input by the user, etc., and generate signal inputs related to user settings and function controls of the mobile terminal 100. In particular, the input module 150 may include keys and a touch screen, which may be disposed on the front surface of the mobile terminal 100, may collect touch operations on or near the user, such as clicking a button, dragging a scroll box, and the like.
The touch screen may cover the display module, and in some embodiments, the touch screen and the display module may be integrated to implement input and output functions of the mobile terminal 100, and after integration, the touch display module may be abbreviated as "touch display module".
The mobile terminal 100 may further include a positioning module, such as a satellite positioning module or a mobile communication network positioning module, which can determine the geographic location of the mobile terminal 100 in real time.
Audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between a user and mobile terminal 100. The audio circuit 160 may transmit the received electrical signal converted from audio data to the speaker 161, and the speaker 161 converts the electrical signal into a sound signal and outputs the sound signal. The mobile terminal 100 may also be configured with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, which is output to the RF circuit 111 to be transmitted to, for example, another terminal, or to the storage module 130 for further processing.
The SIM card interface 170 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 170 or withdrawn from the SIM card interface 170 to enable contact and separation with the mobile terminal 100. The mobile terminal 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 170 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface can be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface may also be compatible with different types of SIM cards. The SIM card interface may also be compatible with external memory cards. The mobile terminal 100 interacts with the network through the SIM card to realize functions such as call and data communication. In some embodiments, the mobile terminal 100 employs esims, i.e.: an embedded SIM card. The eSIM card may be embedded in the mobile terminal 100 and cannot be separated from the mobile terminal 100. The SIM card is used to identify the user's mobile phone number.
The mobile terminal 100 may include a USB (universal serial bus ) interface or the like in addition to the SIM card interface 170. The USB interface is used for connecting a charging wire or other peripheral equipment. For example, the mobile terminal 100 may be connected to a charging wire through a USB interface. The components or modules in the mobile terminal 100 are connected by a bus.
The mobile terminal 100 may further include at least one sensor 180, such as an acceleration sensor 181, a distance sensor 182, a fingerprint sensor 183, a temperature sensor 184. The mobile terminal 100 may also be configured with other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, light sensors, motion sensors, and the like. For example, the fingerprint sensor 183 may be used to sense a user clicking on an icon of an operating interface of the mobile terminal 100.
The mobile terminal 100 may also include a camera for capturing still images or video. The camera can be one or a plurality of cameras. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the processing module 120 for conversion into a digital image signal.
The processing module 120 is a control center of the mobile terminal 100, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by running or executing software programs stored in the memory module 130 and calling data stored in the memory module 130. In some embodiments, the processing module 120 may include one or more processing units. The processing module 120 of the present application may run an operating system, an application program, a user interface display, a touch response, and a mail marking method according to the embodiments of the present application. The specific process of the network sharing method performed by the processing module 120 will be described in detail below.
In the embodiment of the application, the vehicle-mounted terminal can comprise a processing module, a storage module, a communication module, a display module, an input module and other components, and the communication module can also comprise a Wi-Fi module and a Bluetooth module, wherein the Bluetooth module can be used for establishing Bluetooth connection with the mobile terminal to perform data interaction; the Wi-Fi module can be used for establishing wireless communication with the mobile terminal, and the vehicle-mounted terminal can provide a wireless network for the mobile terminal through the Wi-Fi module, and can be connected into the wireless network provided by the mobile terminal through the Wi-Fi module.
Fig. 2 is a software structural block diagram of the mobile terminal 100 according to the embodiment of the present application.
The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun rows (Android runtime) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages. As shown in fig. 2, the application package may include applications such as cameras, gallery, calendar, talk, map, navigation, clock, bluetooth, music, video, short message, etc. The user may set an alarm clock in the clock application. The application layer may also include third party applications installed on the mobile terminal.
The application framework layer provides an application programming interface (Application Programming Interface, API) and programming framework for the application of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager may obtain the display module size, determine if there is a status bar, lock the screen, intercept the screen, etc.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include alarm clock data, video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide communication functions of the mobile terminal. Such as the management of call status (including on, hung-up, etc.). The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the terminal vibrates, and an indicator light blinks.
Android run time includes a core library and virtual machines. Android runtime is responsible for scheduling and management of the android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc. Wherein the three-dimensional graphics processing library and the 2D graphics engine both belong to a common camera resource.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
In order to further explain the technical solution provided by the embodiments of the present application, the following details are described with reference to the accompanying drawings and the detailed description. Although embodiments of the present application provide the method operational steps shown in the following embodiments or figures, more or fewer operational steps may be included in the method, either on a routine or non-inventive basis. In steps where there is logically no necessary causal relationship, the execution order of the steps is not limited to the execution order provided by the embodiments of the present application. The method may be performed sequentially or and in accordance with the method shown in the embodiments or drawings when the actual process or apparatus is performed.
Fig. 3 shows a flowchart of a network sharing method according to an embodiment of the present application. The method may be applied to the mobile terminal shown in fig. 1, which may include, but is not limited to, a mobile phone. As shown in fig. 3, the method may include the steps of:
step S301, bluetooth connection is performed with the vehicle terminal.
Step S302, if the Bluetooth connection is successful, the Bluetooth connection and the vehicle-mounted terminal enter a network sharing state.
The network sharing state refers to a wireless signal connection network provided by the vehicle-mounted terminal through the mobile terminal or a wireless signal connection network provided by the mobile terminal through the vehicle-mounted terminal.
The network sharing method provided by the application will be described in detail through several specific embodiments.
Example 1
After the mobile phone detects that the Bluetooth connection with the vehicle-mounted terminal is successful, the mobile phone hot spot, namely the network sharing function, can be automatically started, wireless signals are provided for the vehicle-mounted terminal, and the vehicle-mounted terminal can be connected with a network through the wireless signals provided by the mobile phone.
Specifically, in one embodiment, as shown in fig. 4, after the mobile phone detects that bluetooth connection with the vehicle-mounted terminal is successful, the mobile phone can enter a driving mode, and detect whether an automatic mobile phone hotspot starting function included in the driving mode is in an enabled state, and if the automatic mobile phone hotspot starting function is in a non-enabled state, the mobile phone hotspot is not automatically started; if the function of automatically starting the mobile phone hot spot is in an enabling state, the mobile phone hot spot is automatically started, and a WLAN (Wireless Local Area Network ) network, namely a wireless network, is provided for the vehicle-mounted terminal, so that the vehicle-mounted terminal can be connected to the wireless network through a Wi-Fi module contained in an automobile.
In an alternative embodiment, the user may set the auto-start phone hotspot function in the driving mode before the phone detects whether the auto-start phone hotspot function included in the driving mode is in an enabled state. Specifically, the user may click an icon of the setting application on the desktop of the mobile phone, the mobile phone responds to the operation of clicking the setting application icon by the user, and displays a selection interface of the setting application, as shown in fig. 5, in the selection interface, a driving mode key may be included, the user may click the driving mode key, the mobile phone responds to the operation of clicking the driving mode key by the user, and a function interface of the driving mode is displayed, as shown in fig. 6, in the function interface of the driving mode, an automatic mobile phone hotspot starting function may be included, and the user may start or close the function by clicking the slider 601, that is, the user may set the automatic mobile phone hotspot starting function by clicking the slider 601.
According to the method, when the function of automatically starting the mobile phone hotspot is in the starting state, the mobile phone can automatically start the mobile phone hotspot after the mobile phone detects that the Bluetooth connection with the vehicle-mounted terminal is successful, and a wireless signal is provided for the vehicle-mounted terminal, so that the vehicle-mounted terminal can be connected with a network through the wireless signal provided by the mobile phone, the network sharing function of the mobile phone is not required to be started manually by a user, the operation is simple, and a great amount of time can be saved for the user.
Example two
After the mobile phone detects that the Bluetooth connection with the vehicle-mounted terminal is successful, the mobile phone can receive the use information of a second SIM (Subscriber Identity Module, user identification) card sent by the vehicle-mounted terminal through the Bluetooth module, wherein the second SIM card is an SIM card contained in the vehicle-mounted terminal. If the usage information of the second SIM card indicates that the second SIM card is in an unused state or the second SIM card has no residual flow, a mobile phone hot spot is automatically started, a wireless signal is provided for the vehicle-mounted terminal, and the vehicle-mounted terminal can be connected with a network through the wireless signal provided by the mobile phone.
Fig. 7 is an interaction flow chart of the network sharing method in this embodiment, as shown in fig. 7, after detecting that the connection with the bluetooth of the mobile phone is successful, the vehicle-mounted terminal may acquire usage information of the second SIM card from the operator server, where the usage information of the second SIM card may include whether the second SIM card is in a usage state, and whether there is residual traffic in the second SIM card. The vehicle-mounted terminal can send the use information of the second SIM card to the mobile phone after acquiring the use information of the second SIM card, the mobile phone determines that the second SIM card is in a use state after receiving the use information of the second SIM card, and the second SIM card has no residual flow, the mobile phone can automatically start a mobile phone hot spot to provide a wireless signal for the vehicle-mounted terminal, and the vehicle-mounted terminal can be connected with a network through the wireless signal after detecting the wireless signal.
In another embodiment, after receiving the usage information of the second SIM card, the mobile phone determines that the second SIM card is in a non-usage state, and the mobile phone can automatically turn on a mobile phone hotspot to provide a WLAN network, i.e. a wireless network, for the vehicle-mounted terminal, so that the vehicle-mounted terminal can be connected to the wireless network through a Wi-Fi module included in the vehicle.
In another embodiment, after receiving the usage information of the second SIM card, the mobile phone determines that the second SIM card is in a usage state, and there is residual traffic in the second SIM card, where the mobile phone may send a data network connection instruction to the vehicle-mounted terminal, and after receiving the data network connection instruction, the vehicle-mounted terminal may open a data network and connect to the network through the data network.
By the method, when the second SIM card contained in the automobile is determined to be in a non-use state or the second SIM card has no residual flow, the mobile phone hot spot can be automatically started, a wireless signal is provided for the vehicle-mounted terminal, and the mobile phone and the vehicle-mounted terminal can automatically enter a network sharing state; when the second SIM card is in a use state and residual flow exists in the second SIM card, the vehicle-mounted terminal is networked through the data network, and meanwhile, the situation that the flow of the mobile phone is consumed too much can be avoided.
Example III
After the mobile phone detects that the Bluetooth connection with the vehicle-mounted terminal is successful, the mobile phone can receive the use information of the second SIM card sent by the vehicle-mounted terminal through Bluetooth; if the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual flow, the mobile phone can acquire the flow information of the first SIM card; if the flow information of the first SIM card contains the directional flow information related to the currently running application in the vehicle-mounted terminal, the mobile phone hot spot is automatically started, a wireless signal is provided for the vehicle-mounted terminal, and the vehicle-mounted terminal can be connected with a network through the wireless signal provided by the mobile phone. The first SIM card is an SIM card contained in the mobile phone, the second SIM card is an SIM card contained in the vehicle-mounted terminal, and the directional flow information associated with the currently running application is flow which is distributed for the currently running application and cannot be used by the application except the currently running application when the application is connected with a network.
Fig. 8 is an interaction flow chart of the network sharing method in this embodiment, as shown in fig. 8, after the vehicle-mounted terminal detects that the connection with the bluetooth of the mobile phone is successful, the vehicle-mounted terminal may acquire the usage information of the second SIM card and the information of the currently running application from the operator server, after the vehicle-mounted terminal acquires the usage information of the second SIM card and the information of the currently running application, the vehicle-mounted terminal may send the usage information of the second SIM card and the information of the currently running application to the mobile phone, after the mobile phone receives the usage information of the second SIM card and the information of the currently running application, it is determined that the second SIM card is in a usage state, and there is residual traffic in the second SIM card, the mobile phone may acquire the traffic information of the first SIM card from the operator server, after determining that the traffic information of the first SIM card includes the directional traffic information associated with the currently running application of the vehicle-mounted terminal, the mobile phone may automatically open a mobile phone hotspot, and may provide a wireless signal for the vehicle-mounted terminal, after detecting the wireless signal, the vehicle-mounted terminal may connect to the network through the wireless signal.
The mobile phone can detect that the traffic information of the first SIM card contains the directional traffic information associated with the navigation application after receiving the information of the navigation application, and the mobile phone can automatically start a mobile phone hotspot to provide a WLAN network, namely a wireless network for the vehicle-mounted terminal, so that the vehicle-mounted terminal can be connected to the wireless network through a Wi-Fi module contained in an automobile.
In another embodiment, after the mobile phone obtains the flow information of the first SIM card from the operator server, it is determined that the flow information of the first SIM card does not include directional flow information associated with an application currently running on the vehicle terminal, and the mobile phone may send a data network connection instruction to the vehicle terminal, so that the vehicle terminal may start a data network and connect to the network through the data network after receiving the data network connection instruction.
The mobile phone can detect that the traffic information of the first SIM card does not contain the directional traffic information associated with the video application after receiving the information of the video application, and the mobile phone can send a data network connection instruction to the vehicle-mounted terminal, so that the vehicle-mounted terminal can start a data network and connect the network through the data network after receiving the data network connection instruction.
By the method, when the mobile phone detects that the flow information of the first SIM card contains the directional flow information of the application currently operated by the vehicle-mounted terminal, the mobile phone hot spot can be automatically started to provide wireless signals for the vehicle-mounted terminal, so that the mobile phone and the vehicle-mounted terminal can automatically enter a network sharing state, and universal flow can be saved, wherein the universal flow is used when any application is connected with a network.
Example IV
After the mobile phone detects that the Bluetooth connection with the vehicle-mounted terminal is successful, the mobile phone can receive the use information of the second SIM card sent by the vehicle-mounted terminal through Bluetooth; if the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual flow, the mobile phone can acquire the flow information of the second SIM card from the usage information of the second SIM card; if the flow information of the second SIM card contains the directional flow information related to the currently running application installed on the mobile phone, connecting the network through a wireless signal provided by the vehicle-mounted terminal; the directional traffic information associated with the currently running application is traffic allocated to the currently running application, which cannot be used by applications other than the currently running application when connecting to the network.
Fig. 9 is an interaction flow chart of the network sharing method in this embodiment, as shown in fig. 9, after the vehicle-mounted terminal detects that the connection with the mobile phone bluetooth is successful, the vehicle-mounted terminal may acquire the usage information of the second SIM card from the operator server, after the vehicle-mounted terminal acquires the usage information of the second SIM card, the vehicle-mounted terminal may send the usage information of the second SIM card to the mobile phone, after the mobile phone receives the usage information of the second SIM card, it determines that the second SIM card is in a usage state, and there is a residual flow in the second SIM card, and determines that the flow information of the second SIM card includes the directional flow information of the application currently running by the mobile phone, then the mobile phone may send a network sharing instruction to the vehicle-mounted terminal through bluetooth, after the vehicle-mounted terminal receives the network sharing instruction, may start a car hot spot to provide a wireless signal for the mobile phone, and after the mobile phone detects the wireless signal, the mobile phone may connect to a network through the wireless signal.
The mobile phone can detect that the flow information of the second SIM card contains the directional flow information associated with the navigation application from the flow information of the second SIM card, and then the mobile phone can send a network sharing instruction to the vehicle-mounted terminal through bluetooth so as to enable the vehicle-mounted terminal to start a vehicle hotspot, namely a network sharing function; the network sharing instruction is used for instructing the vehicle-mounted terminal to start a network sharing function and providing wireless signals for the mobile phone; after detecting the wireless signal provided by the automobile, the mobile phone can be connected with the network through the wireless signal.
In another embodiment, after receiving the usage information of the second SIM card, the mobile phone determines that the second SIM card is in a usage state, and there is residual traffic in the second SIM card, and determines that the traffic information of the second SIM card does not include directional traffic information of an application currently running on the mobile phone, and the mobile phone may start a data network and connect to the network through the data network.
In an exemplary embodiment, assuming that the traffic information of the second SIM card includes directional traffic information of a social application and a navigation application, the currently running application is a video application installed on the mobile phone, the mobile phone may detect, from the traffic information of the second SIM card, that the traffic information of the second SIM card does not include directional traffic information associated with the video application, and the mobile phone may open a data network and connect to the network through the data network.
By the method, when the flow information of the second SIM card contains the directional flow information of the application currently operated by the mobile phone, the mobile phone can use the automobile hot spot to carry out networking, so that the mobile terminal and the vehicle-mounted terminal can automatically enter a network sharing state, and the flow of the mobile phone can be saved.
Example five
After the mobile phone detects that the Bluetooth connection with the vehicle-mounted terminal is successful, the mobile phone can receive the use information of the second SIM card sent by the vehicle-mounted terminal through the Bluetooth module; if the usage information of the second SIM card indicates that the second SIM card is in a usage state and there is a residual traffic in the second SIM card, the mobile phone may obtain the used traffic and the first traffic threshold of the first SIM card, and the used traffic and the second traffic threshold of the second SIM card included in the usage information of the second SIM card, respectively. The first SIM card is a SIM card included in the mobile phone, and the second SIM card is a SIM card included in the vehicle-mounted terminal, where the first flow threshold and the second flow threshold may be a flow upper limit set by a user or a flow upper limit set by an operator.
If the used flow of the first SIM card is lower than the first flow threshold value and the used flow of the second SIM card is not lower than the second flow threshold value, starting a network sharing function of the mobile phone; and if the used flow of the second SIM card is lower than the second flow threshold and the used flow of the first SIM card is not lower than the first flow threshold, connecting the network through a wireless signal provided by the vehicle-mounted terminal.
Fig. 10 is an interaction flow chart of the network sharing method in this embodiment, as shown in fig. 10, after the vehicle-mounted terminal detects that the connection with the bluetooth of the mobile phone is successful, the vehicle-mounted terminal may acquire the usage information of the second SIM card from the operator server, after the vehicle-mounted terminal acquires the usage information of the second SIM card, the vehicle-mounted terminal may send the usage information of the second SIM card to the mobile phone, after receiving the usage information of the second SIM card, the mobile phone determines that the second SIM card is in a usage state, and there is a residual flow in the second SIM card, and determines that the used flow of the first SIM card is lower than the first flow threshold, and the used flow of the second SIM card is not lower than the second flow threshold, the mobile phone may automatically turn on a hotspot of the mobile phone, and provide a wireless signal for the vehicle-mounted terminal, and after detecting the wireless signal, the vehicle-mounted terminal may connect to the network through the wireless signal.
Illustratively, assuming that the used traffic of the first SIM card is 100MB, the first traffic threshold is a user-set upper traffic limit of 200MB; the used flow of the second SIM card is 50MB, and the second flow threshold value is the upper flow limit 50MB set by the user; that is, the used flow of the first SIM card is lower than the first flow threshold, and the used flow of the second SIM card is not lower than the second flow threshold, the mobile phone may automatically turn on the mobile phone hotspot, and provide the WLAN network, that is, the wireless network, for the vehicle-mounted terminal, so that the vehicle-mounted terminal may be connected to the wireless network through the Wi-Fi module included in the automobile.
In another embodiment, after receiving the usage information of the second SIM card, the mobile phone determines that the used flow of the second SIM card is lower than the second flow threshold, and the used flow of the first SIM card is not lower than the first flow threshold, and the mobile phone may send a network sharing instruction to the vehicle-mounted terminal through bluetooth, so that the vehicle-mounted terminal starts a car hot spot after receiving the network sharing instruction, provides a wireless signal for the mobile phone, and after detecting the wireless signal, the mobile phone may connect to the network through the wireless signal.
Illustratively, assuming that the used traffic of the first SIM card is 100MB, the first traffic threshold is a traffic upper limit set by the user of 100MB; the used flow of the second SIM card is 50MB, and the second flow threshold value is the upper flow limit 100MB set by the user; the mobile phone can send a network sharing instruction to the vehicle-mounted terminal through Bluetooth so as to enable the vehicle-mounted terminal to start a vehicle hot spot, namely a network sharing function, and provide wireless signals for the mobile phone; after detecting the wireless signal provided by the automobile, the mobile phone can be connected with the network through the wireless signal.
In another embodiment, after receiving the usage information of the second SIM card, the mobile phone determines that the used flow rate of the second SIM card is lower than the second flow rate threshold, and the used flow rate of the first SIM card is also lower than the first flow rate threshold, and then the mobile phone may send a data network connection instruction to the vehicle terminal, so that the vehicle terminal may start the data network and connect to the network through the data network after receiving the data network connection instruction.
Assuming that the used flow of the first SIM card is 100MB, the first flow threshold is the upper flow limit 200MB set by the user; the used flow of the second SIM card is 50MB, and the second flow threshold value is the upper flow limit 100MB set by the user; that is, the used flow of the first SIM card is lower than the first flow threshold and the used flow of the second SIM card is also lower than the second flow threshold, the mobile phone may send a data network connection instruction to the vehicle-mounted terminal, so that the vehicle-mounted terminal may start the data network and connect to the network through the data network after receiving the data network connection instruction.
By the method, the mobile phone can select a more suitable terminal to start the network sharing function according to the used flow of the first SIM card and the second SIM card and the first flow threshold and the second flow threshold set by a user or set by an operator, so that the mobile phone and the vehicle-mounted terminal can automatically enter a network sharing state, and the situation of excessive use of the flow can be avoided.
Example six
After the mobile phone detects that the Bluetooth connection with the vehicle-mounted terminal is successful, the mobile phone can receive the use information of the second SIM card sent by the vehicle-mounted terminal through the Bluetooth module; if the usage information of the second SIM card indicates that the second SIM card is in a usage state and there is residual traffic in the second SIM card, the mobile phone may acquire traffic information of the second SIM card from the usage information of the second SIM card, and acquire traffic information of the first SIM card from the operator server, and then determine whether the traffic information of the second SIM card and the traffic information of the first SIM card include directional traffic information associated with the currently running application. The currently running application may be any application contained in the vehicle-mounted terminal, or may be any application installed on the mobile phone, and the currently running application may contain a plurality of applications.
Fig. 11 is an interactive flowchart of the network sharing method of the embodiment, as shown in fig. 11, assuming that the currently running application is an application of a mobile phone; the vehicle-mounted terminal can acquire the use information of the second SIM card from the operator server after detecting that the connection with the Bluetooth of the mobile phone is successful, can send the use information of the second SIM card to the mobile phone after acquiring the use information of the second SIM card, and can acquire the flow information of the first SIM card from the operator and acquire the information of the application currently operated by the mobile phone after receiving the use information of the second SIM card. After the acquisition is completed, the mobile phone determines that the second SIM card is in a use state, residual flow exists in the second SIM card, the flow information of the first SIM card does not contain the directional flow information of the application currently operated by the mobile phone, the flow information of the second SIM card contains the directional flow information of the application currently operated by the mobile phone, the mobile phone can send a network sharing instruction to the vehicle-mounted terminal through Bluetooth, the vehicle-mounted terminal can start an automobile hot spot after receiving the network sharing instruction, a wireless signal is provided for the mobile phone, and the mobile phone can be connected with a network through the wireless signal after detecting the wireless signal.
The mobile phone can detect that the traffic information of the first SIM card does not contain the directional traffic information associated with the navigation application, and the traffic information of the second SIM card contains the directional traffic information associated with the navigation application, so that the mobile phone can send a network sharing instruction to the vehicle-mounted terminal through bluetooth, after receiving the network sharing instruction, an automobile hot spot is started to provide a wireless signal for the mobile phone, and after detecting the wireless signal, the mobile phone can connect with a network through the wireless signal.
In another embodiment, after determining that the second SIM card is in a use state and there is residual traffic in the second SIM card, the mobile phone determines that the traffic information of the first SIM card includes directional traffic information of an application currently running on the mobile phone, and the traffic information of the second SIM card does not include directional traffic information of the application currently running on the mobile phone, where the mobile phone may start a data network and connect to the network through the data network.
In another embodiment, it is assumed that the currently running application is an application of the in-vehicle terminal; the vehicle-mounted terminal can acquire the use information of the second SIM card and the information of the currently running application from the operator server after detecting that the connection with the Bluetooth of the mobile phone is successful, can send the use information of the second SIM card and the information of the currently running application to the mobile phone after acquiring the use information of the second SIM card and the information of the currently running application, and can acquire the flow information of the first SIM card from the operator after receiving the use information of the second SIM card and the information of the currently running application. After the acquisition is completed, the mobile phone determines that the second SIM card is in a use state, residual flow exists in the second SIM card, the flow information of the first SIM card contains directional flow information of an application currently operated by the vehicle-mounted terminal, the flow information of the second SIM card does not contain directional flow information of the application currently operated by the vehicle-mounted terminal, and the mobile phone can send a network sharing instruction to the vehicle-mounted terminal through Bluetooth, so that after the vehicle-mounted terminal receives the network sharing instruction, an automobile hot spot is started to provide a wireless signal for the mobile phone, and after the wireless signal is detected, the mobile phone can be connected with a network through the wireless signal.
In another embodiment, after determining that the second SIM card is in a use state and there is residual traffic in the second SIM card, the mobile phone determines that the traffic information of the first SIM card does not include directional traffic information of an application currently operated by the vehicle-mounted terminal, the traffic information of the second SIM card includes directional traffic information of the application currently operated by the vehicle-mounted terminal, and the mobile phone may send a data network connection instruction to the vehicle-mounted terminal, and after receiving the data network connection instruction, the vehicle-mounted terminal may open a data network and connect to the network through the data network.
In another embodiment, it is assumed that the currently running application includes a first application of the in-vehicle terminal and a second application installed on the mobile phone; the method comprises the steps that after the vehicle-mounted terminal detects that the connection with the Bluetooth of the mobile phone is successful, the use information of the second SIM card and the information of the first application running currently can be obtained from an operator server, after the vehicle-mounted terminal obtains the use information of the second SIM card and the information of the first application, the use information of the second SIM card and the information of the first application can be sent to the mobile phone, and after the mobile phone receives the use information of the second SIM card and the information of the application running currently, the mobile phone can obtain the flow information of the first SIM card and the information of the second application from the operator.
After the acquisition is completed, the mobile phone determines that the second SIM card is in a use state, residual flow exists in the second SIM card, the flow information of the first SIM card contains directional flow information of the first application, the flow information of the second SIM card contains directional flow information of the second application, the mobile phone can select any terminal to start a network sharing function, for example, the mobile phone can select a vehicle-mounted terminal to start the network sharing function, namely, the mobile phone can send a network sharing instruction to the vehicle-mounted terminal through Bluetooth, so that the vehicle-mounted terminal starts a car hot spot after receiving the network sharing instruction, a wireless signal is provided for the mobile phone, and the mobile phone can be connected with a network through the wireless signal after detecting the wireless signal.
Based on the same inventive concept, the embodiment of the present application further provides a network sharing device, as shown in fig. 12, where the network sharing device includes:
a connection unit 1201 for performing bluetooth connection with the vehicle-mounted terminal;
A sharing unit 1202, if the bluetooth connection is successful, entering a network sharing state with the vehicle-mounted terminal; the network sharing state refers to a wireless signal connection network provided by the vehicle-mounted terminal through the mobile terminal or a wireless signal connection network provided by the mobile terminal through the vehicle-mounted terminal.
In a possible implementation manner, the sharing unit 1202 is specifically configured to:
Receiving using information of a second user identification SIM card sent by the vehicle-mounted terminal through Bluetooth; the second SIM card is an SIM card contained in the vehicle-mounted terminal;
If the usage information of the second SIM card indicates that the second SIM card is in an unused state or the second SIM card has no residual flow, starting a network sharing function of the mobile terminal so as to provide wireless signals for the vehicle-mounted terminal, and enabling the vehicle-mounted terminal to be connected with a network through the wireless signals provided by the mobile terminal.
In a possible implementation, the sharing unit 1202 may be further configured to:
If the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual traffic, acquiring traffic information of a first SIM card;
if the flow information of the first SIM card contains the directional flow information associated with the currently running application in the vehicle-mounted terminal, starting the network sharing function of the mobile terminal; the directional traffic information associated with the currently running application refers to traffic allocated to the currently running application, which cannot be used by applications other than the currently running application when connecting to a network.
In a possible implementation, the sharing unit 1202 may be further configured to:
If the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual flow, acquiring flow information of the second SIM card from the usage information of the second SIM card;
If the flow information of the second SIM card contains the directional flow information related to the application currently running in the mobile terminal, connecting the network through a wireless signal provided by the vehicle-mounted terminal; the directional traffic information associated with the currently running application refers to traffic allocated to the currently running application, which cannot be used by applications other than the currently running application when connecting to a network.
In a possible implementation, the sharing unit 1202 may be further configured to:
If the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual flow, respectively acquiring the used flow of the first SIM card and a first flow threshold value, and the used flow of the second SIM card and a second flow threshold value contained in the usage information of the second SIM card;
If the used flow of the first SIM card is lower than the first flow threshold and the used flow of the second SIM card is not lower than the second flow threshold, starting a network sharing function of the mobile terminal;
And if the used flow of the second SIM card is lower than the second flow threshold and the used flow of the first SIM card is not lower than the first flow threshold, connecting a network through a wireless signal provided by the vehicle-mounted terminal.
In a possible implementation, the sharing unit 1202 may be further configured to:
If the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual flow, acquiring the flow information of the first SIM card and acquiring the flow information of the second SIM card from the usage information of the second SIM card;
And if the flow information of the second SIM card contains the directional flow information related to the application currently running in the mobile terminal and the flow information of the first SIM card does not contain the directional flow information related to the application currently running in the mobile terminal, connecting the network through the wireless signal provided by the vehicle-mounted terminal.
In a possible implementation, the sharing unit 1202 may be further configured to:
Sending a network sharing instruction to the vehicle-mounted terminal through Bluetooth; the network sharing instruction instructs the vehicle-mounted terminal to start a network sharing function and provide wireless signals for the mobile terminal;
and the wireless signal provided by the vehicle-mounted terminal is connected with a network.
In a possible implementation manner, the sharing unit 1202 is specifically configured to:
If the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual flow, acquiring the flow information of the first SIM card and acquiring the flow information of the second SIM card from the usage information of the second SIM card;
The flow information of the first SIM card comprises directional flow information associated with the application currently operated by the vehicle-mounted terminal, and the flow information of the second SIM card does not comprise directional flow information associated with the application currently operated by the vehicle-mounted terminal, so that a network sharing function of the mobile terminal is started; the directional traffic information associated with the currently running application refers to traffic allocated to the currently running application, which cannot be used by applications other than the currently running application when connecting to a network.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage modules, CD-ROMs, optical storage modules, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing module of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing module of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory module that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory module produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
Claims (9)
1. A mobile terminal, comprising: the system comprises a Bluetooth module, a wireless fidelity Wi-Fi module and a processing module;
the Bluetooth module is configured to establish Bluetooth communication connection with the vehicle-mounted terminal;
the Wi-Fi module is configured to establish wireless communication connection with the vehicle-mounted terminal;
The processing module is configured to receive the use information of the second SIM card sent by the vehicle-mounted terminal through Bluetooth; the second SIM card is an SIM card contained in the vehicle-mounted terminal;
If the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual flow, respectively acquiring the used flow of the first SIM card and a first flow threshold value, and the used flow of the second SIM card and a second flow threshold value contained in the usage information of the second SIM card, wherein the first SIM card is the SIM card contained in the mobile terminal;
If the used flow of the first SIM card is lower than the first flow threshold and the used flow of the second SIM card is not lower than the second flow threshold, starting a network sharing function of the mobile terminal;
And if the used flow of the second SIM card is lower than the second flow threshold and the used flow of the first SIM card is not lower than the first flow threshold, connecting a network through a wireless signal provided by the vehicle-mounted terminal.
2. The mobile terminal of claim 1, wherein the processing module is further configured to:
If the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual traffic, acquiring traffic information of a first SIM card;
if the flow information of the first SIM card contains the directional flow information associated with the currently running application in the vehicle-mounted terminal, starting the network sharing function of the mobile terminal; the directional traffic information associated with the currently running application refers to traffic allocated to the currently running application, which cannot be used by applications other than the currently running application when connecting to a network.
3. The mobile terminal of claim 1, wherein the processing module is further configured to:
If the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual flow, acquiring flow information of the second SIM card from the usage information of the second SIM card;
If the flow information of the second SIM card contains the directional flow information related to the application currently running in the mobile terminal, connecting the network through a wireless signal provided by the vehicle-mounted terminal; the directional traffic information associated with the currently running application refers to traffic allocated to the currently running application, which cannot be used by applications other than the currently running application when connecting to a network.
4. The mobile terminal of claim 1, wherein the processing module is further configured to:
If the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual flow, respectively acquiring the used flow of the first SIM card and a first flow threshold value, and the used flow of the second SIM card and a second flow threshold value contained in the usage information of the second SIM card;
If the used flow of the first SIM card is lower than the first flow threshold and the used flow of the second SIM card is not lower than the second flow threshold, starting a network sharing function of the mobile terminal;
And if the used flow of the second SIM card is lower than the second flow threshold and the used flow of the first SIM card is not lower than the first flow threshold, connecting a network through a wireless signal provided by the vehicle-mounted terminal.
5. The mobile terminal of claim 1, wherein the processing module is further configured to:
If the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual flow, acquiring the flow information of the first SIM card and acquiring the flow information of the second SIM card from the usage information of the second SIM card;
And if the flow information of the second SIM card contains the directional flow information related to the application currently running in the mobile terminal and the flow information of the first SIM card does not contain the directional flow information related to the application currently running in the mobile terminal, connecting the network through the wireless signal provided by the vehicle-mounted terminal.
6. The mobile terminal according to any of claims 3-5, wherein the processing module is specifically configured to:
Sending a network sharing instruction to the vehicle-mounted terminal through Bluetooth; the network sharing instruction instructs the vehicle-mounted terminal to start a network sharing function and provide wireless signals for the mobile terminal;
and the wireless signal provided by the vehicle-mounted terminal is connected with a network.
7. The mobile terminal of claim 1, wherein the processing module is further configured to:
If the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual flow, acquiring the flow information of the first SIM card and acquiring the flow information of the second SIM card from the usage information of the second SIM card;
The flow information of the first SIM card comprises directional flow information associated with the application currently operated by the vehicle-mounted terminal, and the flow information of the second SIM card does not comprise directional flow information associated with the application currently operated by the vehicle-mounted terminal, so that a network sharing function of the mobile terminal is started; the directional traffic information associated with the currently running application refers to traffic allocated to the currently running application, which cannot be used by applications other than the currently running application when connecting to a network.
8. A network sharing method, applied to a mobile terminal, comprising:
bluetooth connection is carried out with the vehicle-mounted terminal;
Receiving the use information of the second SIM card sent by the vehicle-mounted terminal through Bluetooth; the second SIM card is an SIM card contained in the vehicle-mounted terminal;
If the usage information of the second SIM card indicates that the second SIM card is in a usage state and the second SIM card has residual flow, respectively acquiring the used flow of the first SIM card and a first flow threshold value, and the used flow of the second SIM card and a second flow threshold value contained in the usage information of the second SIM card, wherein the first SIM card is the SIM card contained in the mobile terminal;
If the used flow of the first SIM card is lower than the first flow threshold and the used flow of the second SIM card is not lower than the second flow threshold, starting a network sharing function;
And if the used flow of the second SIM card is lower than the second flow threshold and the used flow of the first SIM card is not lower than the first flow threshold, connecting a network through a wireless signal provided by the vehicle-mounted terminal.
9. A computer-readable storage medium having a computer program stored therein, characterized in that: which computer program, when being executed by a processor, implements the method of claim 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210154691.5A CN114501389B (en) | 2022-02-21 | 2022-02-21 | Mobile terminal, network sharing method and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210154691.5A CN114501389B (en) | 2022-02-21 | 2022-02-21 | Mobile terminal, network sharing method and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114501389A CN114501389A (en) | 2022-05-13 |
CN114501389B true CN114501389B (en) | 2024-10-29 |
Family
ID=81482999
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210154691.5A Active CN114501389B (en) | 2022-02-21 | 2022-02-21 | Mobile terminal, network sharing method and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114501389B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112333683A (en) * | 2020-11-27 | 2021-02-05 | 北京小米移动软件有限公司 | Hotspot sharing method and device, mobile terminal and storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106358264A (en) * | 2016-11-08 | 2017-01-25 | 珠海市魅族科技有限公司 | Network sharing method and terminal |
WO2019043446A1 (en) * | 2017-09-04 | 2019-03-07 | Nng Software Developing And Commercial Llc | A method and apparatus for collecting and using sensor data from a vehicle |
CN107682910B (en) * | 2017-09-30 | 2021-01-26 | Oppo广东移动通信有限公司 | Traffic resource sharing method and device, mobile terminal and storage medium |
CN108601000A (en) * | 2018-03-07 | 2018-09-28 | 深圳市车可讯科技有限公司 | A kind of method and apparatus monitoring on-vehicle Bluetooth to open terminal Wi-Fi hotspot |
CN110876139A (en) * | 2018-08-29 | 2020-03-10 | 上海博泰悦臻网络技术服务有限公司 | Method, system, electronic equipment and vehicle for sharing mobile phone card package flow |
CN109788438A (en) * | 2019-02-11 | 2019-05-21 | 胡金星 | A kind of intelligent navigation car networking system based on big data |
-
2022
- 2022-02-21 CN CN202210154691.5A patent/CN114501389B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112333683A (en) * | 2020-11-27 | 2021-02-05 | 北京小米移动软件有限公司 | Hotspot sharing method and device, mobile terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114501389A (en) | 2022-05-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111367456A (en) | Communication terminal and display method in multi-window mode | |
CN111597004B (en) | Terminal and user interface display method in application | |
CN113835569A (en) | Terminal device, quick start method for internal function of application and storage medium | |
CN114020379B (en) | Terminal equipment, information feedback method and storage medium | |
CN111176766A (en) | Communication terminal and component display method | |
CN113709026B (en) | Method, device, storage medium and program product for processing instant communication message | |
CN114035870A (en) | Terminal device, application resource control method and storage medium | |
CN114530148A (en) | Control method and device and electronic equipment | |
CN114371895B (en) | Terminal equipment, mail marking method and storage medium | |
CN114449171B (en) | Method for controlling camera, terminal device, storage medium and program product | |
CN115334604A (en) | Terminal device, network control method and storage medium | |
CN113642010B (en) | Method for acquiring data of extended storage device and mobile terminal | |
CN114501389B (en) | Mobile terminal, network sharing method and storage medium | |
CN112000411B (en) | Mobile terminal and display method of recording channel occupation information thereof | |
CN114675786A (en) | Large-capacity storage mounting method, device, terminal and medium | |
CN111159734A (en) | Communication terminal and multi-application data inter-access processing method | |
CN112954622A (en) | Mobile terminal and short message sending method thereof | |
CN114007202A (en) | Method for establishing binding relationship and related equipment | |
CN114896009B (en) | Terminal equipment, server, theme recommendation method and storage medium | |
CN114020381B (en) | Terminal equipment, plug-in deployment method and storage medium | |
CN115442472B (en) | Terminal device, communication control method and storage medium | |
CN115150265B (en) | Dual-system data processing method, device and apparatus | |
CN114968013B (en) | Terminal device, function setting method and storage medium | |
CN114595203B (en) | File synchronization method based on dual systems, terminal equipment and storage medium | |
CN111142648B (en) | Data processing method and intelligent terminal |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Country or region after: China Address after: Shandong City, Qingdao Province, Jiangxi City Road No. 11 Applicant after: Qingdao Hisense Mobile Communication Technology Co.,Ltd. Address before: Shandong City, Qingdao Province, Jiangxi City Road No. 11 Applicant before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd. Country or region before: China |
|
GR01 | Patent grant |