CN114071628B - Terminal communication method and device based on android system and storage medium - Google Patents

Terminal communication method and device based on android system and storage medium Download PDF

Info

Publication number
CN114071628B
CN114071628B CN202210007435.3A CN202210007435A CN114071628B CN 114071628 B CN114071628 B CN 114071628B CN 202210007435 A CN202210007435 A CN 202210007435A CN 114071628 B CN114071628 B CN 114071628B
Authority
CN
China
Prior art keywords
network
access request
target
wireless fidelity
internet
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
Application number
CN202210007435.3A
Other languages
Chinese (zh)
Other versions
CN114071628A (en
Inventor
徐航
刘国清
杨广
王启程
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Youjia Innovation Technology Co.,Ltd.
Original Assignee
Shenzhen Minieye Innovation Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Minieye Innovation Technology Co Ltd filed Critical Shenzhen Minieye Innovation Technology Co Ltd
Priority to CN202210007435.3A priority Critical patent/CN114071628B/en
Publication of CN114071628A publication Critical patent/CN114071628A/en
Application granted granted Critical
Publication of CN114071628B publication Critical patent/CN114071628B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • H04W36/305Handover due to radio link failure

Abstract

The invention discloses a terminal communication method, a terminal communication device and a storage medium based on an android system, relates to the technical field of mobile communication, and solves the problem that when a terminal device is connected with a hot spot of an electronic device and the electronic device cannot access the Internet, the terminal device cannot access the Internet. The specific scheme comprises the following steps: after the target application is started, determining that a currently started process in the target application is a first process or a second process, wherein the currently started process is used for requesting data through a network connected with terminal equipment; monitoring a target network connected with the terminal equipment through a currently started process; acquiring an access request in a target application, wherein the access request is used for requesting target data; and if the currently started process is a first process, the target network comprises a wireless fidelity network and a cellular network, and the access request is a request for accessing the Internet through the first process, acquiring target data based on the first process, the second process and the access request.

Description

Terminal communication method and device based on android system and storage medium
Technical Field
The invention relates to the technical field of mobile communication, in particular to a terminal communication method and device based on an android system and a storage medium.
Background
An android Application (APP) is an APP that runs on an android system. When the terminal device installed with the android application program is connected with a wireless fidelity (WiFi) network and a cellular network at the same time, the terminal device defaults to preferentially select the WiFi network and uses a WiFi network channel to access internet data.
In the prior art, a terminal device connects to a WiFi network through a hotspot connecting to an electronic device (such as a router, a laptop, and an intelligent hardware). When a user needs to access the internet through the android APP, but the electronic equipment cannot be connected with the internet, the android APP cannot access the internet.
Disclosure of Invention
The invention provides a terminal communication method, a terminal communication device and a storage medium based on an android system, and solves the problem that when a terminal device is connected with a hot spot of an electronic device and the electronic device cannot access the internet, the terminal device cannot access the internet.
In order to achieve the purpose, the invention adopts the following technical scheme:
in a first aspect, the present invention provides a terminal communication method based on an android system, which is applied to a terminal device, and the method includes:
after a target application process is started, acquiring a currently started process identifier of the target application, and determining that the currently started process is a first process or a second process according to the process identifier, wherein the currently started process is used for requesting data through a network connected with a terminal device;
monitoring a target network connected with the terminal equipment through a currently started process;
acquiring an access request in a target application, wherein the access request is used for requesting target data;
and if the currently started process is a first process, the target network comprises a wireless fidelity network and a cellular network, and the access request is a request for accessing the Internet through the first process, acquiring target data based on the first process, the second process and the access request.
According to the terminal communication method based on the android system, after a target android APP in terminal equipment is started, the target android APP can acquire a currently started process identifier. The target android APP determines that the currently started process in the target android APP comprises a first process for communicating the target android APP with the electronic equipment or a second process for communicating the target android APP with the Internet according to the process identifier. The terminal device can also monitor a target network connected with the terminal device through the currently started process. And if the currently started process is a first process, the target network comprises a wireless fidelity network and a cellular network, and the access request is a request for accessing the Internet through the first process, acquiring target data based on the first process, the second process and the access request. Compared with the prior art that when the terminal equipment is connected with the wireless fidelity network and the cellular network simultaneously, but the wireless fidelity network cannot be connected with the internet, the target android APP cannot access the internet, the terminal communication method based on the android system provided by the invention can be matched with each other through the first process and the second process, so that the purpose of accessing the internet is achieved.
In a possible implementation manner, if the currently started process is a first process, the target network includes a wireless fidelity network and a cellular network, and the access request is a request for accessing the internet through the first process, acquiring the target data based on the first process, the second process, and the access request includes:
if the currently started process is the first process, the target network comprises a wireless fidelity network and a cellular network, and the access request is a request for accessing the internet through the first process, the first process sends the access request to the second process;
the second process sends the access request and receives the target data through the cellular network or the wireless fidelity network;
the second process sends the target data to the first process.
In a possible implementation manner, the sending, by the second process, the access request and receiving the target data through a cellular network or a wireless fidelity network includes:
if the communication between the wireless fidelity network and the internet is normal, the second process sends an access request through the wireless fidelity network and receives target data;
and if the communication between the wireless fidelity network and the Internet is abnormal, the second process sends an access request through the cellular network and receives the target data.
In a possible implementation manner, the terminal communication method based on the android system further includes:
and if the currently started process is a second process, the target network comprises a wireless fidelity network and a cellular network, and the access request is a request for accessing the Internet through the second process, acquiring the target data based on the cellular network and the access request, or acquiring the target data based on the wireless fidelity network and the access request.
In a second aspect, the present invention provides a terminal communication device based on the android system, where the terminal communication device based on the android system includes:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a currently started process of a target application after the target application is started, the currently started process is a first process or a second process, and the currently started process is used for requesting data through a network connected with terminal equipment;
the monitoring unit is used for monitoring a target network connected with the terminal equipment through the currently started process acquired by the acquisition unit;
the acquisition unit is also used for acquiring an access request in the target application, wherein the access request is used for requesting target data; and if the currently started process is a first process, the target network comprises a wireless fidelity network and a cellular network, and the access request is a request for accessing the Internet through the first process, acquiring target data based on the first process, the second process and the access request.
In a possible implementation manner, the obtaining unit is specifically configured to:
if the currently started process is a first process, the target network comprises a wireless fidelity network and a cellular network, and the access request is a request for accessing the Internet through the first process, the first process sends an access request to a second process;
the second process sends an access request through a cellular network or a wireless fidelity network and receives target data;
the second process sends the target data to the first process.
In a possible implementation manner, the obtaining unit is specifically configured to:
if the communication between the wireless fidelity network and the internet is normal, the second process sends an access request through the wireless fidelity network and receives target data;
and if the communication between the wireless fidelity network and the Internet is abnormal, the second process sends an access request through the cellular network and receives the target data.
In a possible implementation manner, the obtaining unit is further configured to:
and if the currently started process is a second process, the target network comprises a wireless fidelity network and a cellular network, and the access request is a request for accessing the Internet through the second process, acquiring the target data based on the cellular network and the access request, or acquiring the target data based on the wireless fidelity network and the access request.
In a third aspect, the present invention provides a terminal communication device based on an android system, where the terminal communication device based on the android system includes: a processor and a memory. The memory is for storing computer program code, the computer program code including computer instructions. When the processor executes the computer instruction, the terminal communication device based on the android system executes the terminal communication method based on the android system as in the first aspect and any one of the possible implementation manners thereof.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which computer instructions are stored, and when the computer instructions are run on a terminal communication device based on an android system, the terminal communication device based on the android system is caused to perform the terminal communication method based on the android system as described in the first aspect or any one of the possible implementation manners of the first aspect.
Drawings
FIG. 1 is a schematic diagram of a computing device according to an embodiment of the present invention;
fig. 2 is one of schematic flow diagrams of a terminal communication method based on the android system according to an embodiment of the present invention;
fig. 3 is a second schematic flow chart of the terminal communication method based on the android system according to the embodiment of the present invention;
fig. 4 is a third schematic flowchart of a terminal communication method based on the android system according to the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal communication device based on the android system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of the present disclosure, "a plurality" means two or more unless otherwise specified.
Additionally, the use of "based on" or "according to" means open and inclusive, as a process, step, calculation, or other action that is "based on" or "according to" one or more stated conditions or values may in practice be based on additional conditions or exceeding the stated values.
In order to solve the problem that when a terminal device is connected with a hot spot of an electronic device and the electronic device cannot access the internet, the terminal device cannot access the internet, the embodiment of the invention provides a terminal communication method and device based on an android system and a storage medium.
The terminal communication method based on the android system provided by the embodiment of the invention can be suitable for a terminal communication system. The terminal communication system may include: at least one terminal equipment, electronic equipment and server. The terminal device can be connected with the electronic device through wired communication or wireless communication, and the terminal device can be connected with the server through wired communication or wireless communication.
And the electronic equipment is used for providing a hot spot and enabling the terminal equipment to be connected with the wireless fidelity network. The electronic device may also be used to provide data to the terminal device.
For example, the electronic device may be a router, a laptop, smart hardware, or the like.
And the server is used for providing data to the terminal equipment.
And the terminal equipment is used for connecting the wireless fidelity network of the electronic equipment and acquiring data from the electronic equipment or the server through the wireless fidelity network and the own cellular network.
For example, the terminal device may be a smartphone, a tablet computer (Pad), a telephone watch, or the like, in which an android APP is installed.
The basic hardware structures of the terminal device, the electronic device and the server are similar, and all include elements included in the computing apparatus shown in fig. 1. The hardware structures of the terminal device, the electronic device, and the server will be described below by taking the computing apparatus shown in fig. 1 as an example.
As shown in fig. 1, a computing device may include: a processor 11, a memory 12, a communication interface 13 and a bus 14. The processor 11, the memory 12 and the communication interface 13 may be connected by a communication bus 14.
The processor 11 is a control center of the computing device, and may be one processor 11 or a collective term for a plurality of processing elements. For example, the processor 11 may be a general-purpose Central Processing Unit (CPU), or may be another general-purpose processor 11. The general purpose processor 11 may be a microprocessor 11 or any conventional processor 11 or the like.
For one embodiment, processor 11 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 1.
The memory 12 may be, but is not limited to, a read-only memory 12 (ROM) or other type of static storage device that may store static information and instructions, a random access memory 12 (RAM) or other type of dynamic storage device that may store information and instructions, an electrically erasable programmable read-only memory 12 (EEPROM), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
In a possible implementation, the memory 12 may be present separately from the processor 11, and the memory 12 may be connected to the processor 11 via a bus 14 for storing instructions or program code. When the processor 11 calls and executes the instructions or program codes stored in the memory 12, the terminal communication method based on the android system provided by the following embodiments of the present application can be implemented.
In another possible implementation, the memory 12 may also be integrated with the processor 11.
The communication interface 13 is used for connecting the computing apparatus and other devices through a communication network, where the communication network may be an ethernet, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), or the like. The communication interface 13 may comprise a receiving unit for receiving data and a transmitting unit for transmitting data.
The bus 14 may be an Industry Standard Architecture (ISA) bus 14, a Peripheral Component Interconnect (PCI) bus 14, an Extended ISA (EISA) bus 14, or the like. The bus 14 may be divided into an address bus 14, a data bus 14, a control bus 14, etc. For ease of illustration, only one thick line is shown in FIG. 1, but does not indicate only one bus 14 or one type of bus 14.
It is noted that the configuration shown in fig. 1 does not constitute a limitation of the terminal device, which may comprise more or less components than those shown in fig. 1, or some components may be combined, or a different arrangement of components than those shown in fig. 1.
The execution main body of the terminal communication method based on the android system provided by the embodiment of the invention is a terminal communication device based on the android system. The terminal communication device based on the android system can be the terminal equipment and can also be a CPU in the terminal equipment. The embodiment of the invention takes a terminal device executing a terminal communication method based on an android system as an example, and explains the terminal communication method based on the android system provided by the application.
The following describes a terminal communication method based on the android system provided by the embodiment of the present invention with reference to the accompanying drawings.
As shown in fig. 2, the terminal communication method based on the android system provided in the embodiment of the present invention includes the following steps 201 to 204.
201. After the target application is started, the terminal device obtains a currently started process identifier in the target application, and determines that the currently started process is a first process or a second process according to the process identifier, wherein the currently started process is used for requesting data through a network connected with the terminal device.
The terminal equipment is provided with a target application, the target application is configured into multiple processes in a development stage, and the multiple processes can be divided into a first process and a second process according to business requirements. The first process and the second process can be communicated, and the first process and the second process are respectively provided with corresponding process identifications. After the target application is started, the terminal device obtains a currently started process identifier of the target application, and can determine that the currently started process is a first process or a second process according to the process identifier, and the currently started process can be used for requesting data through a network connected with the terminal device.
It is to be understood that the target application is a target android APP.
Optionally, the first process may be a process in which the terminal device accesses other devices in the local area network, and the second process may be a process in which the terminal device accesses the internet.
Optionally, the process identifier may include an Identity Document (ID) of the target android APP, and a custom identifier. The custom identifier may be a character or a character string.
202. And the terminal equipment monitors a target network connected with the terminal equipment through the currently started process.
Optionally, the target network is one of a WiFi network and a cellular network, or the target network is a WiFi network and a cellular network. The WiFi network may be a hotspot of the electronic device, and the electronic device may be a router or a laptop computer.
Optionally, the first process is a process of communicating the target android APP with the electronic device, and the second process is a process of communicating the target android APP with the internet.
Illustratively, when the terminal device determines that a currently started process in the target android APP is a first process, the first process directly selects to communicate with the electronic device through a WiFi network when the target android APP monitors that the target network includes the WiFi network through the first process.
Illustratively, when the terminal device determines that the currently started process in the target android APP is the second process, the second process communicates with the internet through the cellular network when the target android APP monitors that the target network is the cellular network through the second process. And when the target android APP monitors that the target network is a WiFi network or a cellular network through the second process, the second process preferentially selects to communicate with the Internet through the WiFi network. At this time, if the electronic device cannot be connected to the internet, that is, the second process cannot communicate with the internet through the WiFi network, the second process selects to communicate with the internet through the cellular network.
203. The terminal equipment acquires an access request in the target application, and the access request is used for requesting target data.
Alternatively, the access request may be a request for accessing the electronic device, or may be a request for accessing the internet.
204. And if the currently started process is a first process, the target network comprises a wireless fidelity network and a cellular network, and the access request is a request for accessing the Internet through the first process, the terminal equipment acquires target data based on the first process, the second process and the access request.
When the terminal device determines that the currently started process is the first process, the target network includes a WiFi network and a cellular network, and the access request is a request for accessing the internet through the first process, the terminal device may obtain the target data in the following two manners, where, in one possible implementation manner, the access request may be any request for accessing the internet. At this time, the obtaining, by the terminal device, the target data based on the first process, the second process, and the access request may include: firstly, a target android APP in the terminal device sends the access request to a second process through a first process. Secondly, a second process in the target android APP sends an access request through a cellular network or a WiFi network and receives target data. And finally, the second process in the target android APP sends the target data to the first process.
As can be seen from the above, when the terminal device determines that the currently started process is the first process, the target network includes the WiFi network and the cellular network, and the access request is a request for accessing the internet through the first process, the first process may transmit the access request to the second process, and communicate with the internet through the second process, so as to obtain the target data.
Optionally, when the second process in the target android APP sends an access request and receives target data, which network is specifically selected is related to whether the WiFi network can connect to the internet. That is, what kind of network is selected when the second process acquires the target data is related to whether the electronic device providing the WiFi network to the terminal device can normally communicate with the internet.
Illustratively, if the WiFi network is in communication with the internet normally, indicating that the electronic device is capable of communicating with the internet normally, the second process sends the access request through the WiFi network and receives the target data.
Illustratively, if the WiFi network is in communication with the internet abnormally, which indicates that the electronic device cannot communicate with the internet normally, the second process sends the access request through the cellular network and receives the target data.
For example, the electronic device is an Artificial Intelligence (AI) collision prevention instrument, the AI collision prevention instrument cannot normally communicate with the internet, the access request is used for requesting to store a video tutorial for installing the AI collision prevention instrument in the server, and the terminal device is a mobile phone with a target android APP. The mobile phone is connected with the hotspot of the cellular network and the AI anti-collision instrument, the process of the current start of the target android APP is a first process, after the target android APP sends the access request through the first process, the target android APP utilizes a second process to directly send the access request to the server through the cellular network, and receives the video tutorial.
Optionally, if the currently started process is a first process, the target network includes a wireless fidelity network and a cellular network, and the access request is a request for accessing the electronic device through the first process, the terminal device obtains the target data based on the first process and the access request.
Illustratively, when the target network includes a wireless fidelity network and the access request is to access data stored in the AI collision prevention instrument, the target android APP can directly connect to the AI collision prevention instrument through the first process and access data related to the AI collision prevention instrument. For example, the target android APP can view and/or download collision warning videos, parking monitoring videos, and the like stored in the AI collision prevention instrument.
Optionally, if the currently started process is a first process, the target network includes a wireless fidelity network and a cellular network, the access request includes a request for accessing the electronic device through the first process and a request for accessing the internet through the first process, and the terminal device obtains the target data based on the first process, the second process, and the access request.
Illustratively, when the target network comprises the wireless fidelity network, the access request comprises access to data stored in the AI collision prevention instrument and uploading related data in the AI collision prevention instrument to the server, the target android APP can be directly connected with the AI collision prevention instrument through the first process and download the related data of the AI collision prevention instrument. Meanwhile, the target android APP can upload the relevant data downloaded from the AI anti-collision instrument to the server through the second process. Therefore, the goal APP can simultaneously use the WiFi network provided by the AI anti-collision instrument and the cellular network of the mobile phone.
Referring to fig. 2, as shown in fig. 3, when the terminal device determines that the currently started process is the first process, the target network includes a WiFi network and a cellular network, and the access request is a request for accessing the internet through the first process, in a possible implementation manner, the access request is a preset request for accessing the internet. At this time, the terminal device may perform the following step 301.
301. And if the currently started process is a first process, the target network comprises a wireless fidelity network and a cellular network, and the access request is a request for accessing the Internet through the first process, the terminal equipment acquires target data based on the cellular network and the access request.
If the currently started process is the first process and the access request is a request for accessing the internet through the first process, the terminal device needs to judge whether the access request is a preset access request. If the terminal device determines that the access request is a preset access request, the terminal device may directly send the access request to a corresponding server through a cellular network to obtain the target data.
According to the terminal communication method based on the android system, provided by the embodiment of the invention, after a target android APP in the terminal equipment is started, the terminal equipment can acquire a currently started process in the target android APP. The process of the current start comprises a first process of communication between the target android APP and the electronic equipment, or a second process of communication between the target android APP and the internet. The terminal device can also monitor a target network connected with the terminal device through the currently started process. And if the currently started process is a first process, the target network comprises a wireless fidelity network and a cellular network, and the access request is a request for accessing the Internet through the first process, acquiring target data based on the first process, the second process and the access request. Compared with the prior art that when the terminal device is connected with the wireless fidelity network and the cellular network simultaneously, but the wireless fidelity network cannot be connected with the internet, the target android APP cannot access the internet, the terminal communication method based on the android system provided by the embodiment of the invention can be matched with each other through the first process and the second process, so that the purpose of accessing the internet is achieved.
Referring to fig. 3, as shown in fig. 4, the terminal communication method based on the android system provided in the embodiment of the present invention may further include the following step 401.
401. And if the currently started process is a second process, the target network comprises a wireless fidelity network and a cellular network, and the access request is a request for accessing the Internet through the second process, the terminal equipment acquires the target data based on the cellular network and the access request, or acquires the target data based on the wireless fidelity network and the access request.
When a second process in the target android APP sends an access request and receives target data, which network is specifically selected and is related to whether the WiFi network can be connected with the Internet or not, and details are not repeated here.
The scheme provided by the embodiment of the invention is introduced mainly from the perspective of a terminal communication device based on an android system. It is understood that, in order to implement the above functions, the terminal communication device based on the android system includes a hardware structure and/or a software module corresponding to the execution of each function. Those of skill in the art will readily appreciate that the present invention can be implemented in hardware or a combination of hardware and computer software, in conjunction with the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
Fig. 5 shows a schematic diagram of a possible composition of the android system based terminal communication device 500 in the foregoing embodiment, and as shown in fig. 5, the android system based terminal communication device 500 may include: an acquisition unit 501 and a listening unit 502.
The obtaining unit 501 is configured to obtain a currently started process of the target application after the target application is started, where the currently started process is a first process or a second process, and the currently started process is used for requesting data through a network connected to the terminal device. A monitoring unit 502, configured to monitor a target network connected to the terminal device through the currently started process acquired by the acquiring unit 501. The obtaining unit 501 is further configured to obtain an access request in a target application, where the access request is used to request target data; and if the currently started process is a first process, the target network comprises a wireless fidelity network and a cellular network, and the access request is a request for accessing the Internet through the first process, acquiring target data based on the first process, the second process and the access request.
An obtaining unit 501, configured to specifically send an access request to a second process if a currently started process is a first process, a target network includes a wireless fidelity network and a cellular network, and an access request is a request for accessing the internet through the first process; the second process sends an access request through a cellular network or a wireless fidelity network and receives target data; the second process sends the target data to the first process.
An obtaining unit 501, configured to send an access request through the wifi network and receive target data if the wifi network is in normal communication with the internet; and if the communication between the wireless fidelity network and the Internet is abnormal, the second process sends an access request through the cellular network and receives the target data.
The obtaining unit 501 is further configured to, if the currently started process is a second process, the target network includes a wireless fidelity network and a cellular network, and the access request is a request for accessing the internet through the second process, obtain the target data based on the cellular network and the access request, or obtain the target data based on the wireless fidelity network and the access request.
Of course, the terminal communication device 500 based on the android system provided in the embodiment of the present invention includes, but is not limited to, the above modules.
In actual implementation, the obtaining unit 501 and the listening unit 502 may be implemented by the processor 11 shown in fig. 1 calling program codes in the memory 12. For a specific implementation process, reference may be made to the descriptions of the terminal communication method part based on the android system shown in fig. 2 to fig. 4, which are not described herein again.
Another embodiment of the present invention further provides a computer-readable storage medium, where a computer instruction is stored in the computer-readable storage medium, and when the computer instruction runs on the terminal communication device 500 based on the android system, the terminal communication device 500 based on the android system executes each step executed by the terminal communication device 500 based on the android system in the method flow shown in the foregoing method embodiment.
Another embodiment of the present invention further provides a chip system, which is applied to the terminal communication device 500 based on the android system. The system-on-chip includes one or more interface circuits, and one or more processors 11. The interface circuit and the processor 11 are interconnected by a line. The interface circuit is configured to receive a signal from memory 12 of android-based terminal communication device 500, and send the signal to processor 11, where the signal includes computer instructions stored in memory 12. When processor 11 executes the computer instructions, terminal communication device 500 based on the android system executes each step executed by terminal communication device 500 based on the android system in the method flow shown in the foregoing method embodiment.
In another embodiment of the present invention, a computer program product is further provided, where the computer program product includes instructions, and when the instructions are run on the terminal communication device 500 based on the android system, the terminal communication device 500 based on the android system is enabled to perform the steps performed by the terminal communication device 500 based on the android system in the method flow shown in the foregoing method embodiment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented using a software program, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The processes or functions according to embodiments of the present invention occur, in whole or in part, when computer-executable instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). Computer-readable storage media can be any available media that can be accessed by a computer or can comprise one or more data storage devices, such as servers, data centers, and the like, that can be integrated with the media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions within the technical scope of the present invention are intended to be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (8)

1. A terminal communication method based on an android system is applied to terminal equipment and is characterized by comprising the following steps:
after a target application is started, acquiring a process identifier of a currently started process in the target application, and determining that the currently started process is a first process or a second process according to the process identifier, wherein the currently started process is used for requesting data through a network connected with the terminal equipment;
monitoring a target network connected with the terminal equipment through the currently started process;
obtaining an access request in the target application, wherein the access request is used for requesting target data;
if the currently started process is the first process, the target network comprises a wireless fidelity network and a cellular network, and the access request is a request for accessing the internet through the first process, the first process sends the access request to the second process;
the second process sends the access request and receives the target data through the cellular network or the wireless fidelity network;
the second process sends the target data to the first process.
2. The android-system-based terminal communication method of claim 1, wherein the second process sends the access request and receives the target data through the cellular network or the wifi network, and includes:
if the wireless fidelity network is normally communicated with the Internet, the second process sends the access request through the wireless fidelity network and receives the target data;
and if the communication between the wireless fidelity network and the Internet is abnormal, the second process sends the access request through the cellular network and receives the target data.
3. The android system-based terminal communication method according to any one of claims 1 or 2, wherein the android system-based terminal communication method further includes:
and if the currently started process is the second process, the target network comprises a wireless fidelity network and a cellular network, and the access request is a request for accessing the internet through the second process, acquiring the target data based on the cellular network and the access request, or acquiring the target data based on the wireless fidelity network and the access request.
4. The utility model provides a terminal communication device based on tall and erect system of ann, its characterized in that includes:
an obtaining unit, configured to obtain, after a target application is started, a process identifier of a currently started process in the target application, and determine, according to the process identifier, that the currently started process is a first process or a second process, where the currently started process is used for requesting data through a network connected to the terminal device;
the monitoring unit is used for monitoring a target network connected with the terminal equipment through the currently started process acquired by the acquisition unit;
the obtaining unit is further configured to obtain an access request in the target application, where the access request is used to request target data; if the currently started process is the first process, the target network comprises a wireless fidelity network and a cellular network, and the access request is a request for accessing the internet through the first process, the first process sends the access request to the second process; the second process sends the access request and receives the target data through the cellular network or the wireless fidelity network; the second process sends the target data to the first process.
5. The android system-based terminal communication device of claim 4, wherein the obtaining unit is specifically configured to:
if the wireless fidelity network is normally communicated with the Internet, the second process sends the access request through the wireless fidelity network and receives the target data;
and if the communication between the wireless fidelity network and the Internet is abnormal, the second process sends the access request through the cellular network and receives the target data.
6. The android-system-based terminal communication device of any one of claims 4 or 5, wherein the obtaining unit is further configured to:
and if the currently started process is the second process, the target network comprises a wireless fidelity network and a cellular network, and the access request is a request for accessing the internet through the second process, acquiring the target data based on the cellular network and the access request, or acquiring the target data based on the wireless fidelity network and the access request.
7. The utility model provides a terminal communication device based on tall and erect system of ann, its characterized in that, terminal communication device based on tall and erect system of ann includes: a processor and a memory; the memory for storing computer program code, the computer program code comprising computer instructions; when the processor executes the computer instructions, the android system-based terminal communication device executes the android system-based terminal communication method according to any one of claims 1 to 3.
8. A computer-readable storage medium, comprising computer instructions, which, when run on an android system-based terminal communication device, cause the android system-based terminal communication device to execute the android system-based terminal communication method according to any one of claims 1 to 3.
CN202210007435.3A 2022-01-06 2022-01-06 Terminal communication method and device based on android system and storage medium Active CN114071628B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210007435.3A CN114071628B (en) 2022-01-06 2022-01-06 Terminal communication method and device based on android system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210007435.3A CN114071628B (en) 2022-01-06 2022-01-06 Terminal communication method and device based on android system and storage medium

Publications (2)

Publication Number Publication Date
CN114071628A CN114071628A (en) 2022-02-18
CN114071628B true CN114071628B (en) 2022-04-26

Family

ID=80230773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210007435.3A Active CN114071628B (en) 2022-01-06 2022-01-06 Terminal communication method and device based on android system and storage medium

Country Status (1)

Country Link
CN (1) CN114071628B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103605529A (en) * 2013-05-17 2014-02-26 华为终端有限公司 Method and device for processing application program
KR20140115197A (en) * 2013-03-20 2014-09-30 주식회사에어플러그 Method for controlling use of wireless networks on connection of an additional wireless network and Apparatus for said method
CN107153583A (en) * 2017-05-24 2017-09-12 努比亚技术有限公司 A kind of striding course interaction processing method, mobile terminal and computer-readable recording medium
CN109558739A (en) * 2017-09-26 2019-04-02 腾讯科技(深圳)有限公司 Program operating method, device, terminal and readable medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105682002A (en) * 2014-11-20 2016-06-15 深圳Tcl数字技术有限公司 Communication connection establishment method and data communication method and system
CN105357373B (en) * 2015-10-08 2018-11-13 广州中海达定位技术有限公司 Multi net voting based on android system simultaneously uses method and system
CN107484219A (en) * 2017-08-24 2017-12-15 深圳双创科技发展有限公司 Terminal is switched to the method and terminal of cellular network from WiFi network
CN109756940B (en) * 2018-06-19 2021-06-01 北京字节跳动网络技术有限公司 Network switching method and mobile terminal
CN113329473B (en) * 2020-02-28 2023-02-17 深圳市万普拉斯科技有限公司 Method and device for accessing application program to Internet and user terminal
CN113115482B (en) * 2021-03-31 2022-11-22 影石创新科技股份有限公司 Terminal communication method and device based on android system, terminal and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140115197A (en) * 2013-03-20 2014-09-30 주식회사에어플러그 Method for controlling use of wireless networks on connection of an additional wireless network and Apparatus for said method
CN103605529A (en) * 2013-05-17 2014-02-26 华为终端有限公司 Method and device for processing application program
CN107153583A (en) * 2017-05-24 2017-09-12 努比亚技术有限公司 A kind of striding course interaction processing method, mobile terminal and computer-readable recording medium
CN109558739A (en) * 2017-09-26 2019-04-02 腾讯科技(深圳)有限公司 Program operating method, device, terminal and readable medium

Also Published As

Publication number Publication date
CN114071628A (en) 2022-02-18

Similar Documents

Publication Publication Date Title
CN106658652B (en) Method and device for connecting WiFi hotspot
CN110762775B (en) Upgrading method of air conditioner and air conditioner
EP3490304B1 (en) Method for identifying access point and hotspot, and related products
CN109041140B (en) Method for rapidly switching wireless network, intelligent hardware and terminal equipment
KR20150065410A (en) Access point connection method of electronic apparatus and electronic appparatus thereof
CN111741512B (en) Private network access method and device
CN113655727A (en) Control method and device for household electrical appliance
CN108173725A (en) Apparatus control method, device, terminal and computer readable storage medium
CN111586716B (en) Network slice deployment method and device
CN114598750B (en) Data request processing method, device and storage medium
CN110762773A (en) Upgrading method of air conditioner and air conditioner
CN109451518B (en) Method and equipment for distinguishing WLAN access mode of terminal
CN114071628B (en) Terminal communication method and device based on android system and storage medium
CN113285825A (en) Equipment access system and access method
CN106658471B (en) User identification module configuration method and device
CN112702739A (en) Wireless network sharing method, device, readable storage medium and mobile terminal
KR20180050001A (en) Firmware upgrade system and method for IoT
CN107172610B (en) GSM network self-adaption method and device and electronic equipment
CN111131473B (en) Network parameter transmission method and device
CN110762774B (en) Upgrading method of air conditioner and air conditioner
CN113746909A (en) Network connection method, device, electronic equipment and computer readable storage medium
EP3706451A1 (en) Terminal and communication method
CN114357339B (en) Page loading method and device and storage medium
CN114579198B (en) Memory chip starting method and device, computer equipment and storage medium
CN114070721B (en) Module information determining method, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Floor 25, Block A, Zhongzhou Binhai Commercial Center Phase II, No. 9285, Binhe Boulevard, Shangsha Community, Shatou Street, Futian District, Shenzhen, Guangdong 518000

Patentee after: Shenzhen Youjia Innovation Technology Co.,Ltd.

Address before: 518051 401, building 1, Shenzhen new generation industrial park, No. 136, Zhongkang Road, Meidu community, Meilin street, Futian District, Shenzhen, Guangdong Province

Patentee before: SHENZHEN MINIEYE INNOVATION TECHNOLOGY Co.,Ltd.