CN111356096B - Information sending method and electronic equipment - Google Patents

Information sending method and electronic equipment Download PDF

Info

Publication number
CN111356096B
CN111356096B CN202010111061.0A CN202010111061A CN111356096B CN 111356096 B CN111356096 B CN 111356096B CN 202010111061 A CN202010111061 A CN 202010111061A CN 111356096 B CN111356096 B CN 111356096B
Authority
CN
China
Prior art keywords
channel
electronic device
data network
sim card
preset
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
CN202010111061.0A
Other languages
Chinese (zh)
Other versions
CN111356096A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010111061.0A priority Critical patent/CN111356096B/en
Publication of CN111356096A publication Critical patent/CN111356096A/en
Application granted granted Critical
Publication of CN111356096B publication Critical patent/CN111356096B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints

Abstract

The invention provides an information sending method and electronic equipment, wherein the method comprises the following steps: under the condition that the instant messaging function of the SIM card of the electronic equipment is used for sending information, selecting a target channel from the operator channel and the Internet channel based on preset parameters; and sending target information by adopting the target channel. Therefore, the target channel is intelligently selected from the operator channel and the internet channel by the electronic equipment based on the preset parameters, and the target channel is adopted to send the target information, so that the operation of selecting the information sending channel by a user can be omitted, the information sending operation is simplified, and the safety of information sending is improved.

Description

Information sending method and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an information sending method and an electronic device.
Background
Currently, all major manufacturers integrate instant messaging functions based on SIM (Subscriber Identity Module) cards into short message applications, so that the short message applications can send information through an operator channel and also through an internet channel. However, in the actual use process of the instant messaging function based on the SIM card, the user is usually required to actively select a sending channel to execute the sending of the information, so that the sending of the information of the instant messaging function based on the SIM card has a problem of tedious operation.
Disclosure of Invention
The embodiment of the invention provides an information sending method and electronic equipment, and aims to solve the problem of complex operation in information sending based on an instant messaging function of an SIM card.
To solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides an information sending method, which is applied to an electronic device, where the electronic device may send information based on an operator channel or an internet channel, and the method includes:
under the condition that the instant messaging function of the SIM card of the electronic equipment is used for sending information, selecting a target channel from the operator channel and the Internet channel based on preset parameters;
and sending target information by adopting the target channel.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device may send information based on an operator channel or an internet channel, and the electronic device includes:
the determining module is used for selecting a target channel from the operator channel and the internet channel based on preset parameters under the condition that the instant messaging function of the SIM card of the electronic equipment is used for sending information;
and the sending module is used for sending the target information by adopting the target channel.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the information sending method.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the above-mentioned information sending method.
In the embodiment of the invention, under the condition of sending information by using the instant messaging function of the SIM card of the electronic equipment, a target channel is selected from the operator channel and the Internet channel based on preset parameters; and sending target information by adopting the target channel. Therefore, the electronic equipment can intelligently select the target channel from the operator channel and the Internet channel based on the preset parameters, and further transmit the target information by adopting the target channel, so that the operation of selecting the information transmission channel by a user can be omitted, the information transmission operation is simplified, and the safety of information transmission is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive labor.
Fig. 1 is a flowchart of an information sending method according to an embodiment of the present invention;
FIG. 2 is a block diagram of an electronic device according to an embodiment of the present invention;
fig. 3 is a second block diagram of an electronic device according to an embodiment of the 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 some, not all, embodiments of the present invention. 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.
The embodiment of the invention provides an information sending method, which is applied to electronic equipment, and can send information based on an operator channel and an internet channel in the process of sending information by using the instant messaging function of an SIM card of the electronic equipment, such as sending short messages through the operator channel or sending multimedia messages through the internet channel.
As shown in fig. 1, the information sending method provided in the embodiment of the present invention includes the following steps:
step 101, selecting a target channel from the operator channel and the internet channel based on preset parameters under the condition of sending information by using the instant messaging function of the SIM card of the electronic equipment.
And 102, sending target information by adopting the target channel.
In this embodiment, the target channel may be selected by obtaining the network security degree and the remaining traffic of the operator channel, obtaining the network security degree and the remaining traffic of the internet channel, and comparing the network security degrees of the operator channel and the internet channel, or comparing the remaining traffic of the operator channel and the internet channel.
The channel with higher network security degree in the operator channel and the internet channel can be selected as the target channel, or the channel with more residual traffic in the operator channel and the internet channel can be selected as the target channel.
For example, when the network security degree of the operator channel is higher than that of the internet channel, the operator channel is selected as a target channel; or, when the remaining flow of the operator channel is less than the remaining flow of the internet channel, selecting the internet channel as the target channel.
When the measurement unit of the remaining traffic of the operator channel is not consistent with the measurement unit of the remaining traffic of the internet channel, the percentage of the remaining traffic of the operator channel may be compared with the percentage of the remaining traffic of the internet channel to select the target channel.
Furthermore, the network security degree and the residual flow can be comprehensively compared, and the weight values of the network security and the residual flow are set to obtain the optimal sending channel.
For example, when the target information is confidential information, the weight value of the network security is much higher than that of the remaining traffic; under the condition, the sending channel with high network security degree can be directly selected as the target channel, so that secret leakage of confidential information caused by the problem of the sending channel is avoided.
For common information, such as information content 'comes back in the morning and has a meal at 7 pm', the weight value of the residual flow is higher than that of the network security; in this case, the sending channel with the higher percentage of the remaining traffic can be directly selected as the target channel, so that the traffic distribution is optimized, and the use effect of the traffic is improved.
Therefore, in the embodiment of the invention, at least one of the network security degree and the residual flow is taken as the preset parameter, so that the electronic equipment can intelligently select the target channel from the operator channel and the Internet channel, and further adopt the target channel to send the target information, the operation of selecting the information sending channel by a user can be omitted, the information sending operation is simplified, and the information sending security is improved.
Optionally, in a case that the preset parameter includes a network security degree; selecting a target channel from the operator channel and the internet channel based on preset parameters comprises: under the condition that a network connected with the electronic equipment is a WiFi wireless network, detecting the safety degree of the WiFi wireless network; and under the condition that the safety degree of the WiFi wireless network is higher than or equal to the preset safety degree, selecting an internet channel corresponding to the WiFi wireless network as a target channel.
In this embodiment, under the condition that the network connected to the electronic device is the WiFi wireless network, and when the security level of the WiFi wireless network is higher than or equal to the preset security level, the internet channel corresponding to the WiFi wireless network can be selected as the target channel, so as to improve the security of information transmission, and at the same time, the use of the flow can be reduced, and the use efficiency of the flow can be improved.
In the use process of the electronic equipment such as the mobile phone and the like, various public WiFi wireless networks can be connected, some public WiFi wireless networks are not encrypted, and information is sent by using the unencrypted WiFi wireless networks, so that information leakage is likely to occur, and even the privacy of a user is exposed. Therefore, under the condition that the network connected with the electronic equipment is the WiFi wireless network, the safety of the WiFi wireless network needs to be detected, and only when the WiFi wireless network connected with the electronic equipment is encrypted and safe, the internet channel corresponding to the WiFi wireless network can be intelligently selected as the target channel, so that the safety of information sending is improved, meanwhile, the use of flow can be reduced, and the use efficiency of the flow is improved.
Optionally, when the electronic device includes a first SIM card, and the preset parameter further includes a remaining traffic, after the detecting the security level of the WiFi wireless network, the method further includes: under the condition that the safety degree of the WiFi wireless network is lower than the preset safety degree, acquiring a first residual flow value of a first data network connected with the electronic equipment, wherein the first data network is a data network provided by a first SIM card of the electronic equipment; and selecting an internet channel corresponding to the first data network as a target channel under the condition that the first residual flow value is greater than or equal to a first preset flow value.
In this embodiment, under the condition that the security degree of the WiFi wireless network connected to the electronic device is lower than the preset security degree, the first remaining traffic value of the first data network of the first SIM card of the electronic device is obtained, and under the condition that the first remaining traffic value is greater than or equal to the first preset traffic value, the internet channel corresponding to the first data network of the first SIM card is selected as the target channel, that is, under the condition that the first remaining traffic value is large, the internet channel corresponding to the first data network of the first SIM card is selected as the sending channel of the target information, so that the use effect of the traffic of the first data network of the first SIM card is improved.
When the first remaining flow value is smaller than the first preset flow value, that is, when the remaining flow value of the first data network of the first SIM card is lower, the number of short messages in the operator channel, such as the number of short messages in a short message package, may also be obtained, and when the number of short messages in the operator channel is greater, the operator channel is selected as the sending channel of the target information, so as to optimize the flow distribution.
Optionally, in a case that the electronic device further includes a second SIM card, after the obtaining of the first remaining flow value of the first data network to which the electronic device is connected, the method further includes:
acquiring a second residual flow of a second data network under the condition that the first residual flow value is smaller than the first preset flow value, wherein the second data network is a data network provided by a second SIM card of the electronic equipment;
selecting an internet channel corresponding to the second data network as a target channel under the condition that the second residual flow value is greater than or equal to a second preset flow value;
and selecting the operator channel as a target channel under the condition that the second residual flow value is smaller than the second preset flow value.
In this embodiment, for an electronic device including two or more SIM cards, when a first remaining traffic value of a first data network of a first SIM card of the electronic device is smaller than a first preset traffic value, a remaining traffic value of a data network of another SIM card of the electronic device is obtained, for example, a second remaining traffic value of a second data network of a second SIM card of the electronic device is obtained, and when the second remaining traffic value is greater than or equal to the second preset traffic value, an internet channel corresponding to the second data network of the second SIM card is selected as a target channel, so that traffic usage of the electronic device is optimized, and traffic usage efficiency is improved.
And when the second residual flow value of the second data network of the second SIM card of the electronic equipment is also smaller than the second preset flow value, selecting the operator channel as the target channel, and then sending the target information through the operator channel, thereby achieving the purpose of saving the residual flow of the SIM card of the electronic equipment.
Further, when the target information is selected to be sent through the operator channel, the target information can be further selected based on the remaining ratio of the short message package of the SIM card connected to the electronic device, that is, the operator channel corresponding to the SIM card with the larger remaining ratio can be selected to send the target information.
Optionally, when the electronic device includes a third SIM card, the selecting a target channel from the operator channel and the internet channel based on preset parameters includes: under the condition that the electronic equipment is not connected with a WiFi wireless network, acquiring a first residual ratio of a third data network connected with the electronic equipment and a second residual ratio of a short message package of the electronic equipment, wherein the third data network is a data network provided by a third SIM card of the electronic equipment; selecting an internet channel corresponding to the third data network as a target channel under the condition that the first residual ratio is greater than or equal to the second residual ratio; and selecting the operator channel as a target channel under the condition that the first residual ratio is smaller than the second residual ratio.
In this embodiment, under the condition that the electronic device is provided with the third SIM card and is only connected to the data network of the third SIM card, that is, under the condition that the electronic device is not connected to the WiFi wireless network, the sending channel with a large margin may be selected as the sending channel of the target information by obtaining the first remaining ratio of the data network of the third SIM card and the second remaining ratio of the short message package of the third SIM card of the electronic device, so as to optimize the use of the traffic.
For example, if the total traffic value of the data network of the third SIM card on the same day is 100M and 10M remains, the first remaining ratio of the data network of the third SIM card is 10%; if the total number of short messages of the short message package of the SIM card in the day is 10 and the number of the short messages in the short message package of the SIM card in the day is 8, the second remaining ratio of the short message package is 20%, and in this case, the target information is recommended to be sent by using an operator channel, so that the use of the flow is optimized.
In addition, aiming at the dual-card dual-standby or multi-card multi-standby electronic equipment, the residual ratio of each SIM card can be detected, and target information is sent based on the data network or the short message of the SIM card with the highest residual ratio, so that the purposes of optimizing the use of the flow and improving the use effect of the flow are achieved.
In the 2G network environment, the short message sent by using the operator channel may be intercepted by the pseudo base station, so that in the 2G network environment, the short message sent by the operator is unsafe, and information leakage may be caused.
Therefore, in the 2G network environment, even if the short message package of the SIM card has surplus, the target information can not be recommended to be sent by using the operator channel.
According to the information sending method, under the condition that the information is sent by using the instant messaging function of the SIM card of the electronic equipment, the target channel is selected from the operator channel and the internet channel based on the preset parameters; and sending target information by adopting the target channel. Therefore, the target channel is intelligently selected from the operator channel and the internet channel by the electronic equipment based on the preset parameters, and the target channel is adopted to send the target information, so that the operation of selecting the information sending channel by a user can be omitted, the information sending operation is simplified, and the safety of information sending is improved.
As shown in fig. 2, an embodiment of the present invention provides an electronic device, where the electronic device may send information based on an operator channel or an internet channel, and the electronic device 200 includes:
a determining module 201, configured to select a target channel from the operator channel and the internet channel based on a preset parameter when an instant messaging function of a SIM card of the electronic device is used to send information;
a sending module 202, configured to send target information using the target channel.
Optionally, in a case that the preset parameter includes a network security degree, the determining module 201 includes:
the detection module is used for detecting the safety degree of a WiFi wireless network under the condition that the network connected with the electronic equipment is the WiFi wireless network;
the first determining unit is used for selecting the internet channel corresponding to the WiFi wireless network as a target channel under the condition that the safety degree of the WiFi wireless network is higher than or equal to the preset safety degree.
Optionally, when the electronic device includes a first SIM card and the preset parameter further includes a remaining flow rate, the determining module 201 further includes:
a first obtaining unit, configured to obtain, after detecting a security degree of the WiFi wireless network, a first remaining traffic value of a first data network connected to the electronic device when the security degree of the WiFi wireless network is lower than the preset security degree, where the first data network is a data network provided by a first SIM card of the electronic device;
and the second determining unit is used for selecting the internet channel corresponding to the first data network as a target channel under the condition that the first residual flow value is greater than or equal to a first preset flow value.
Optionally, in a case that the electronic device further includes a second SIM card, the determining module 201 further includes:
a second obtaining unit, configured to obtain a second remaining traffic of a second data network when a first remaining traffic value of a first data network connected to the electronic device is smaller than a first preset traffic value after the first remaining traffic value is obtained, where the second data network is a data network provided by a second SIM card of the electronic device;
a third determining unit, configured to select an internet channel corresponding to the second data network as a target channel when the second remaining traffic value is greater than or equal to a second preset traffic value;
a fourth determining unit, configured to select the operator channel as a target channel when the second remaining flow value is smaller than the second preset flow value.
Optionally, in a case that the electronic device includes a third SIM card, the determining module 201 includes:
a third obtaining unit, configured to obtain, when the electronic device is not connected to a WiFi wireless network, a first remaining ratio of a third data network connected to the electronic device and a second remaining ratio of a short message package of a third SIM card of the electronic device, where the third data network is a data network provided by the third SIM card of the electronic device;
a fifth determining unit, configured to select, as a target channel, an internet channel corresponding to the third data network when the first remaining ratio is greater than or equal to the second remaining ratio;
a sixth determining unit, configured to select the operator channel as a target channel when the first remaining ratio is smaller than the second remaining ratio.
The electronic device 200 can implement each process implemented by the electronic device in the method embodiment of fig. 1, and is not described here again to avoid repetition.
As shown in fig. 3, an embodiment of the present invention further provides an electronic device, where the electronic device may send information based on an operator channel or an internet channel, and the electronic device 300 includes but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, processor 310, and power supply 311. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 3 does not constitute a limitation of electronic devices, which may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 310 is configured to select a target channel from the operator channel and the internet channel based on preset parameters when information is sent by using an instant messaging function of a SIM card of the electronic device; the radio frequency unit 301 is configured to send target information using the target channel.
Optionally, in a case that the preset parameter includes a network security degree, the processor 310 is configured to detect the security degree of a WiFi wireless network when a network connected to the electronic device is the WiFi wireless network; and under the condition that the safety degree of the WiFi wireless network is higher than or equal to the preset safety degree, selecting an internet channel corresponding to the WiFi wireless network as a target channel.
Optionally, when the electronic device includes a first SIM card, and the preset parameter further includes a remaining flow rate, the processor 310 is configured to, after detecting the security degree of the WiFi wireless network, obtain a first remaining flow rate value of a first data network connected to the electronic device when the security degree of the WiFi wireless network is lower than the preset security degree, where the first data network is a data network provided by the first SIM card of the electronic device; and selecting an internet channel corresponding to the first data network as a target channel under the condition that the first residual flow value is greater than or equal to a first preset flow value.
Optionally, in a case that the electronic device further includes a second SIM card, the processor 310 is configured to, after obtaining a first remaining flow value of a first data network to which the electronic device is connected, obtain a second remaining flow of a second data network when the first remaining flow value is smaller than the first preset flow value, where the second data network is a data network provided by a second SIM card of the electronic device; selecting an internet channel corresponding to the second data network as a target channel under the condition that the second residual flow value is greater than or equal to a second preset flow value; and selecting the operator channel as a target channel under the condition that the second residual flow value is smaller than the second preset flow value.
Optionally, in a case that the electronic device includes a third SIM card, the processor 310 is configured to, in a case that the electronic device is not connected to a WiFi wireless network, obtain a first remaining ratio of a third data network connected to the electronic device and a second remaining ratio of a short message package of the third SIM card of the electronic device, where the third data network is a data network provided by the third SIM card of the electronic device; selecting an internet channel corresponding to the third data network as a target channel under the condition that the first residual ratio is greater than or equal to the second residual ratio; and selecting the operator channel as a target channel under the condition that the first residual ratio is smaller than the second residual ratio.
The electronic device 300 can implement the processes implemented by the electronic device in the foregoing embodiments, and in order to avoid repetition, the details are not repeated here.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 301 may be used for receiving and sending signals during a process of sending and receiving information or a call, and specifically, receives downlink data from a base station and then processes the downlink data to the processor 310; in addition, the uplink data is transmitted to the base station. In general, the radio frequency unit 301 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. In addition, the radio frequency unit 301 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 302, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output as sound. Also, the audio output unit 303 may also provide audio output related to a specific function performed by the electronic apparatus 300 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 304 is used to receive audio or video signals. The input Unit 304 may include a Graphics Processing Unit (GPU) 3041 and a microphone 3042, and the Graphics processor 3041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 306. The image frames processed by the graphic processor 3041 may be stored in the memory 309 (or other storage medium) or transmitted via the radio frequency unit 301 or the network module 302. The microphone 3042 may receive sounds and can process such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 301 in case of the phone call mode.
The electronic device 300 also includes at least one sensor 305, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 3061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 3061 and/or the backlight when the electronic device 300 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 305 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 306 is used to display information input by the user or information provided to the user. The Display unit 306 may include a Display panel 3061, and the Display panel 3061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 307 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 307 includes a touch panel 3071 and other input devices 3072. The touch panel 3071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 3071 (e.g., operations by a user on or near the touch panel 3071 using a finger, a stylus, or any suitable object or attachment). The touch panel 3071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 310, receives a command from the processor 310, and executes the command. In addition, the touch panel 3071 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 307 may include other input devices 3072 in addition to the touch panel 3071. Specifically, the other input devices 3072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein.
Further, the touch panel 3071 can be overlaid on the display panel 3061, and when the touch panel 3071 detects a touch operation thereon or nearby, it is transmitted to the processor 310 to determine the type of the touch event, and then the processor 310 provides a corresponding visual output on the display panel 3061 according to the type of the touch event. Although the touch panel 3071 and the display panel 3061 are shown in fig. 3 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 3071 and the display panel 3061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 308 is an interface for connecting an external device to the electronic apparatus 300. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 308 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 300 or may be used to transmit data between the electronic apparatus 300 and the external device.
The memory 309 may be used to store software programs as well as various data. The memory 309 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 309 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 310 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 309 and calling data stored in the memory 309, thereby performing overall monitoring of the electronic device. Processor 310 may include one or more processing units; preferably, the processor 310 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 310.
The electronic device 300 may further include a power supply 311 (such as a battery) for supplying power to various components, and preferably, the power supply 311 may be logically connected to the processor 310 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 300 includes some functional modules that are not shown, and are not described in detail here.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 310, a memory 309, and a computer program stored in the memory 309 and capable of running on the processor 310, where the computer program, when executed by the processor 310, implements each process of the above-mentioned information sending method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the foregoing embodiment of the information sending method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a component of' 8230; \8230;" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. An information sending method is applied to an electronic device, wherein the electronic device can send information based on an operator channel or an internet channel, and the method comprises the following steps:
under the condition that the instant messaging function of the SIM card of the electronic equipment is used for sending information, selecting a target channel from the operator channel and the Internet channel based on preset parameters;
sending target information by adopting the target channel;
under the condition that the electronic equipment comprises a third SIM card, selecting a target channel from the operator channel and the Internet channel based on preset parameters comprises:
under the condition that the electronic equipment is not connected with a WiFi wireless network, acquiring a first residual ratio of a third data network connected with the electronic equipment and a second residual ratio of a short message package of a third SIM card of the electronic equipment, wherein the third data network is a data network provided by the third SIM card of the electronic equipment;
selecting an internet channel corresponding to the third data network as a target channel under the condition that the first residual ratio is greater than or equal to the second residual ratio;
and selecting the operator channel as a target channel under the condition that the first residual ratio is smaller than the second residual ratio.
2. The method of claim 1, wherein in the case that the preset parameter includes a network security level, the selecting a target channel from the operator channel and the internet channel based on the preset parameter includes:
under the condition that a network connected with the electronic equipment is a WiFi wireless network, detecting the safety degree of the WiFi wireless network;
and under the condition that the safety degree of the WiFi wireless network is higher than or equal to the preset safety degree, selecting an internet channel corresponding to the WiFi wireless network as a target channel.
3. The method according to claim 2, wherein in a case where the electronic device includes a first SIM card and the preset parameters further include a remaining traffic, after the detecting the security level of the WiFi wireless network, the method further comprises:
under the condition that the safety degree of the WiFi wireless network is lower than the preset safety degree, acquiring a first residual flow value of a first data network connected with the electronic equipment, wherein the first data network is a data network provided by a first SIM card of the electronic equipment;
and selecting an internet channel corresponding to the first data network as a target channel under the condition that the first residual flow value is greater than or equal to a first preset flow value.
4. The method of claim 3, wherein after obtaining the first remaining traffic value for the first data network to which the electronic device is connected if the electronic device further comprises a second SIM card, the method further comprises:
acquiring a second residual flow of a second data network under the condition that the first residual flow value is smaller than the first preset flow value, wherein the second data network is a data network provided by a second SIM card of the electronic equipment;
selecting an internet channel corresponding to the second data network as a target channel under the condition that the second residual flow value is greater than or equal to a second preset flow value;
and selecting the operator channel as a target channel under the condition that the second residual flow value is smaller than the second preset flow value.
5. An electronic device, wherein the electronic device can send information based on a carrier channel or an internet channel, the electronic device comprising:
the determining module is used for selecting a target channel from the operator channel and the internet channel based on preset parameters under the condition that the instant messaging function of the SIM card of the electronic equipment is used for sending information;
the sending module is used for sending target information by adopting the target channel;
in a case where the electronic device includes a third SIM card, the determining module includes:
a third obtaining unit, configured to obtain, when the electronic device is not connected to a WiFi wireless network, a first remaining ratio of a third data network connected to the electronic device and a second remaining ratio of a short message package of a third SIM card of the electronic device, where the third data network is a data network provided by the third SIM card of the electronic device;
a fifth determining unit, configured to select, as a target channel, an internet channel corresponding to the third data network when the first remaining ratio is greater than or equal to the second remaining ratio;
a sixth determining unit, configured to select the operator channel as a target channel when the first remaining ratio is smaller than the second remaining ratio.
6. The electronic device of claim 5, wherein in the case that the preset parameter includes a network security level, the determining module comprises:
the detection module is used for detecting the safety degree of the WiFi wireless network under the condition that the network connected with the electronic equipment is the WiFi wireless network;
the first determining unit is used for selecting the internet channel corresponding to the WiFi wireless network as a target channel under the condition that the safety degree of the WiFi wireless network is higher than or equal to the preset safety degree.
7. The electronic device according to claim 6, wherein in a case where the electronic device includes a first SIM card and the preset parameter further includes a remaining flow rate, the determining module further comprises:
a first obtaining unit, configured to obtain a first remaining traffic value of a first data network connected to the electronic device when the security degree of the WiFi wireless network is lower than the preset security degree after detecting the security degree of the WiFi wireless network, where the first data network is a data network provided by a first SIM card of the electronic device;
and the second determining unit is used for selecting the internet channel corresponding to the first data network as a target channel under the condition that the first residual flow value is greater than or equal to a first preset flow value.
8. The electronic device of claim 7, wherein if the electronic device further comprises a second SIM card, the determining module further comprises:
a second obtaining unit, configured to obtain a second remaining traffic of a second data network when a first remaining traffic value of a first data network connected to the electronic device is smaller than a first preset traffic value after the first remaining traffic value is obtained, where the second data network is a data network provided by a second SIM card of the electronic device;
a third determining unit, configured to select an internet channel corresponding to the second data network as a target channel when the second remaining traffic value is greater than or equal to a second preset traffic value;
a fourth determining unit, configured to select the operator channel as a target channel when the second remaining flow value is smaller than the second preset flow value.
9. An electronic device, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the information transmitting method according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, realizes the steps of the information transmitting method according to any one of claims 1 to 4.
CN202010111061.0A 2020-02-24 2020-02-24 Information sending method and electronic equipment Active CN111356096B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010111061.0A CN111356096B (en) 2020-02-24 2020-02-24 Information sending method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010111061.0A CN111356096B (en) 2020-02-24 2020-02-24 Information sending method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111356096A CN111356096A (en) 2020-06-30
CN111356096B true CN111356096B (en) 2022-10-28

Family

ID=71194117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010111061.0A Active CN111356096B (en) 2020-02-24 2020-02-24 Information sending method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111356096B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891257B (en) * 2020-07-03 2023-03-17 千寻位置网络有限公司 Short message sending method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656660A (en) * 2016-11-30 2017-05-10 努比亚技术有限公司 Traffic monitoring device and method

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377631B (en) * 2010-08-06 2015-08-05 北京乾唐视联网络科技有限公司 A kind of data transmission method based on flow control and communication system
CN102123483A (en) * 2011-02-23 2011-07-13 华为终端有限公司 Method and device for switching communication services of double-module mobile terminal
CN103096429A (en) * 2011-10-28 2013-05-08 中国移动通信集团广东有限公司 Method and device for automatic net selecting when mobile terminal is on the internet
US9949197B2 (en) * 2012-06-25 2018-04-17 Sony Corporation Information processor, communication system and method
CN102932862A (en) * 2012-10-17 2013-02-13 南京云恒瑞通网络科技有限责任公司 Method for selecting network connection mode based on business use condition of user
CN103561454B (en) * 2013-10-22 2016-09-28 华为技术有限公司 A kind of network insertion processing method and processing device
CN105025535A (en) * 2014-04-21 2015-11-04 中国移动通信集团设计院有限公司 Access network switching method, apparatus and wireless communication terminal
CN105792330A (en) * 2014-12-25 2016-07-20 中国移动通信集团公司 Method and device for mobile terminal to access to network
CN105636035A (en) * 2015-03-30 2016-06-01 西安酷派软件科技有限公司 Network access method, network access device and terminal
CN106817731B (en) * 2015-11-30 2020-08-25 华为终端有限公司 Network switching method of terminal and terminal equipment
CN105554723A (en) * 2015-12-17 2016-05-04 惠州Tcl移动通信有限公司 SIM card consumption record processing method and system
CN106211164A (en) * 2016-07-28 2016-12-07 宇龙计算机通信科技(深圳)有限公司 Terminal network changing method, terminal network switching device and terminal
CN106656991B (en) * 2016-10-28 2019-05-07 上海百太信息科技有限公司 A kind of Cyberthreat detection system and detection method
JP6485429B2 (en) * 2016-11-04 2019-03-20 トヨタ自動車株式会社 In-vehicle network system
CN107104964B (en) * 2017-04-25 2020-03-24 商洛学院 Network security terminal and use method
CN107182055B (en) * 2017-06-22 2021-01-26 深圳传音通讯有限公司 Mobile terminal network connection processing method and mobile terminal
CN110191178A (en) * 2019-05-29 2019-08-30 深圳市梦网科技发展有限公司 A kind of message push system and information push method, terminal device
CN110493735B (en) * 2019-08-29 2021-12-10 深圳市梦网科技发展有限公司 Short message processing method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106656660A (en) * 2016-11-30 2017-05-10 努比亚技术有限公司 Traffic monitoring device and method

Also Published As

Publication number Publication date
CN111356096A (en) 2020-06-30

Similar Documents

Publication Publication Date Title
CN110266323B (en) Signal control circuit, terminal equipment and signal control method
CN110399000B (en) Mobile terminal and temperature control method thereof
CN108495349B (en) Switching method of operator network and mobile terminal
CN108668328B (en) Network switching method and mobile terminal
CN108282759B (en) Service processing method and mobile communication terminal
CN110719319B (en) Resource sharing method, device, terminal equipment and storage medium
CN111597540B (en) Login method of application program, electronic device and readable storage medium
CN110099434B (en) Power adjustment method, terminal equipment and computer readable storage medium
CN110022551B (en) Information interaction method and terminal equipment
CN110191426B (en) Information sharing method and terminal
CN109743141B (en) Data transmission adjusting method and terminal equipment
CN109151741B (en) Multimedia message receiving method and terminal
CN108419283B (en) WIFI hotspot scanning method and mobile terminal
CN108512616B (en) Signal intensity display method, mobile terminal and computer readable storage medium
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN111615198A (en) Resource determining method, resource indicating method, terminal and network side equipment
CN110636530B (en) Method for processing adjacent channel interference and terminal equipment
CN111356096B (en) Information sending method and electronic equipment
CN111800833B (en) Communication processing method, device, equipment and medium
CN109286414B (en) Antenna determination method and terminal
CN111159738A (en) Permission configuration method, application login method and device
CN111343618B (en) Display method and electronic equipment
CN111343591B (en) Session information processing method and electronic equipment
CN110365842B (en) Terminal control method and terminal equipment
CN109412986B (en) Communication channel setting method and mobile 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
GR01 Patent grant
GR01 Patent grant