CN110417470B - Network switching method based on visible light communication and related product - Google Patents

Network switching method based on visible light communication and related product Download PDF

Info

Publication number
CN110417470B
CN110417470B CN201910828201.3A CN201910828201A CN110417470B CN 110417470 B CN110417470 B CN 110417470B CN 201910828201 A CN201910828201 A CN 201910828201A CN 110417470 B CN110417470 B CN 110417470B
Authority
CN
China
Prior art keywords
network
file
level
environment information
determining
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
CN201910828201.3A
Other languages
Chinese (zh)
Other versions
CN110417470A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910828201.3A priority Critical patent/CN110417470B/en
Publication of CN110417470A publication Critical patent/CN110417470A/en
Application granted granted Critical
Publication of CN110417470B publication Critical patent/CN110417470B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/114Indoor or close-range type systems
    • H04B10/1149Arrangements for indoor wireless networking of information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/114Indoor or close-range type systems
    • H04B10/116Visible light communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general
    • H04L63/205Network architectures or network communication protocols for network security for managing network security; network security policies in general involving negotiation or determination of the one or more network security mechanisms to be used, e.g. by negotiation between the client and the server or between peers or by selection according to the capabilities of the entities involved
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/30Security of mobile devices; Security of mobile applications
    • H04W12/37Managing security policies for mobile devices or for controlling mobile applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service

Abstract

The embodiment of the application discloses a network switching method based on visible light communication, which is applied to electronic equipment; the method comprises the following steps: the method comprises the steps that electronic equipment obtains first network environment information of a visible light communication Li-Fi network accessed by the electronic equipment and second network environment information of a high-fidelity wireless communication Wi-Fi network accessed by the electronic equipment, determines file attributes of files to be transmitted, determines file transmission strategies according to the file attributes, the first network environment information and the second network environment information, and finally transmits the files to be transmitted according to the file transmission strategies; therefore, the electronic equipment determines a file transmission strategy according to the file attribute, the first network environment information and the second network environment information, and transmits the file to be transmitted according to the file transmission strategy, so that the efficiency and convenience of network switching are improved.

Description

Network switching method based on visible light communication and related product
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a network switching method based on visible light communication and a related product.
Background
Nowadays, the Wi-Fi technology has become more and more popular, but people who complain that wireless signals are unstable, the internet access speed is slow, and Wi-Fi hotspots are too few and are used more and more, and the Li-Fi technology for visible light wireless communication is produced by the way, and the Li-Fi technology is used for wirelessly transmitting information by utilizing fast optical pulses. It is fully feasible to encode information in light according to different rates, e.g. LED on for 1 and off for 0, information can be transmitted by fast switching. Due to the luminous intensity of the LED, the human eye does not notice the rapid change of light; although Li-Fi does have the advantage of being immune to radio signals, many of its advantages are overshadowed by the fact that: the key fact that visible light cannot penetrate walls enables Wi-Fi to gain great advantages; therefore, how to reasonably select a network, performing network handover is one of the problems that needs to be solved today.
Disclosure of Invention
The embodiment of the application provides a network switching method based on visible light communication and a related product, so as to improve the efficiency and convenience of network switching.
In a first aspect, an embodiment of the present application provides a network switching method based on visible light communication, which is applied to an electronic device; the method comprises the following steps:
acquiring first network environment information of a visible light communication Li-Fi network accessed by the electronic equipment and second network environment information of a high-fidelity wireless communication Wi-Fi network accessed by the electronic equipment;
determining the file attribute of a file to be transmitted;
determining a file transmission strategy according to the file attribute, the first network environment information and the second network environment information;
and transmitting the file to be transmitted according to the file transmission strategy.
In a second aspect, an embodiment of the present application provides a network switching device based on visible light communication, which is applied to an electronic device; the network switching device based on visible light communication comprises a processing unit, a communication unit and a storage unit, wherein,
the processing unit is used for acquiring first network environment information of a visible light communication Li-Fi network accessed by the electronic equipment and second network environment information of a high-fidelity wireless communication Wi-Fi network accessed by the electronic equipment; the file attribute determining module is used for determining the file attribute of the file to be transmitted; and determining a file transmission policy according to the file attribute, the first network environment information and the second network environment information; and the file transmission device is used for transmitting the file to be transmitted according to the file transmission strategy.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods in the second aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps described in any one of the methods of the second aspect of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, a network switching method based on visible light communication is provided, which is applied to an electronic device; the method comprises the following steps: the method comprises the steps that electronic equipment obtains first network environment information of a visible light communication Li-Fi network accessed by the electronic equipment and second network environment information of a high-fidelity wireless communication Wi-Fi network accessed by the electronic equipment, determines file attributes of files to be transmitted, determines file transmission strategies according to the file attributes, the first network environment information and the second network environment information, and finally transmits the files to be transmitted according to the file transmission strategies; therefore, when the electronic equipment performs network switching based on visible light network communication, a file transmission strategy is determined according to the file attribute, the first network environment information and the second network environment information, and the file to be transmitted is transmitted according to the file transmission strategy, so that the high efficiency and convenience of network switching are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic block diagram of a network handover method based on visible light communication according to an embodiment of the present application;
fig. 2A is a schematic flowchart of a network switching method based on visible light communication according to an embodiment of the present application;
fig. 2B is a schematic block diagram of a network handover method based on visible light communication according to an embodiment of the present application;
fig. 2C is a schematic block diagram of another network handover method based on visible light communication according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another network handover method based on visible light communication according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 5 is a block diagram of functional units of a network switching device based on visible light communication according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, which have wireless communication functions, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like.
At present, an electronic device can support visible light communication and high-fidelity wireless communication during network communication, as shown in fig. 1, after a visible light communication Li-Fi network and a high-fidelity wireless communication Wi-Fi network in an area where the electronic device is located are scanned, it is determined that available networks include a Li-Fi network 1, a Li-Fi network 2 and a Wi-Fi network 3, and the electronic device selects the Li-Fi network 2 to perform file transmission according to actual conditions.
In view of the foregoing problems, embodiments of the present application provide a network switching method based on visible light communication, and the following describes embodiments of the present application in detail with reference to the accompanying drawings.
Referring to fig. 2A, fig. 2A is a schematic flowchart of a network switching method based on visible light communication according to an embodiment of the present application, and is applied to an electronic device; the method comprises the following steps:
s201, an electronic device obtains first network environment information of a visible light communication Li-Fi network accessed by the electronic device and second network environment information of a high-fidelity wireless communication Wi-Fi network accessed by the electronic device;
the first network environment information comprises a first network source, a first anti-interference level, a first network encryption level, a first network channel frequency band, a first user number, a first encryption level and a first network channel capacity.
The second network environment information comprises a second network source, a second anti-interference level, a second network encryption level, a second network channel frequency band, a second user number, a second encryption level and a second network channel capacity.
S202, the electronic equipment determines the file attribute of the file to be transmitted;
the file attributes comprise file security, file type and file encryption condition.
S203, the electronic equipment determines a file transmission strategy according to the file attribute, the first network environment information and the second network environment information;
s204, the electronic equipment transmits the file to be transmitted according to the file transmission strategy.
It can be seen that, in the embodiment of the present application, a network switching method based on visible light communication is provided, which is applied to an electronic device; the method comprises the following steps: the method comprises the steps that electronic equipment obtains first network environment information of a visible light communication Li-Fi network accessed by the electronic equipment and second network environment information of a high-fidelity wireless communication Wi-Fi network accessed by the electronic equipment, determines file attributes of files to be transmitted, determines file transmission strategies according to the file attributes, the first network environment information and the second network environment information, and finally transmits the files to be transmitted according to the file transmission strategies; therefore, when the electronic equipment performs network switching based on visible light network communication, a file transmission strategy is determined according to the file attribute, the first network environment information and the second network environment information, and the file to be transmitted is transmitted according to the file transmission strategy, so that the high efficiency and convenience of network switching are improved.
In one possible example, the electronic device determining a file transfer policy based on the file attribute, the first network environment information, and the second network environment information includes: the electronic equipment determines the file security level of the file to be transmitted according to the file attribute; if the electronic equipment determines that the file security level is greater than a first security threshold, acquiring a first network source, a first encryption level and a first anti-interference level of the Li-Fi network according to the first network environment information; the electronic equipment determines a first network security level of the Li-Fi network according to the first network source, the first encryption level and the first anti-interference level; the electronic equipment acquires a second network source, a second encryption level and a second anti-interference level of the Wi-Fi network according to the second network environment information; the electronic equipment determines a second network security level of the Wi-Fi network according to the second network source, the second encryption level and the second anti-interference level; and the electronic equipment determines a file transmission strategy according to the first network security level and the second network security level.
The file attributes comprise the file type and the file security degree of the file to be transmitted.
The file security level comprises a file security level of the file to be transmitted, which is determined according to the file security degree and a preset file security level dividing strategy.
Wherein the first network origin comprises a network name of the Li-Fi network.
The first encryption level comprises the encryption level of the Li-Fi network determined according to the encryption type, the password complexity and a preset encryption level division strategy of the Li-Fi network.
The first anti-interference level comprises an anti-interference level determined according to the anti-interference capacity degree of the Li-Fi network and a preset anti-interference level division strategy.
Wherein the second network origin comprises a network name of the Wi-Fi network.
The second encryption level comprises the encryption level of the Li-Fi network determined according to the encryption type, the password complexity and a preset encryption level division strategy of the Wi-Fi network.
And the second anti-interference level comprises the anti-interference level of the Wi-Fi network determined according to the anti-interference capacity degree of the Wi-Fi network and a preset anti-interference level division strategy.
In a specific implementation, as shown in fig. 2B, the mobile phone determines, according to a file attribute of a file a to be transmitted, that a file security level of the file a to be transmitted is eight levels, which is greater than a first security threshold; according to the first network environment information, acquiring that a first network source of the L-a of the Li-Fi network is a coffee shop public network, a first encryption level is five levels and a first anti-interference level is three levels, and determining that the first network security level of the L-a of the Li-Fi network is four levels; meanwhile, according to the second network environment information, acquiring that a second network source of the Wi-Fi network W-b is a private network, a second encryption level is eight, and a second anti-interference level is nine, and determining that the second network security level of the Wi-Fi network W-b is nine; and determining that the file transmission strategy is to transmit the file to be transmitted through W-b according to the condition that the first network security level is lower than the second network security level.
In this example, the electronic device determines a file security level of the file to be transmitted according to the file attribute, and if it is determined that the file security level is greater than a first security threshold, obtains a first network source, a first encryption level and a first anti-interference level of the Li-Fi network according to the first network environment information, then determines the first network security level of the Li-Fi network, and simultaneously obtains a second network source, a second encryption level and a second anti-interference level of the Wi-Fi network according to the second network environment information, determines the second network security level of the Wi-Fi network, and finally determines a file transmission policy according to the first network security level and the second network security level; the method is favorable for improving the security of file transmission, and is favorable for improving the accuracy and the efficiency of network switching by selecting proper network transmission files according to the file attributes and the network security level.
In one possible example, the electronic device determines a file transfer policy according to the first network security level and the second network security level, including: the electronic device compares the first network security level and the second network security level; if the electronic equipment determines that the first network security level is higher than the second network security level, judging whether the first network security level is greater than a security level threshold value; and if the electronic equipment determines that the first network security level is greater than a security level threshold, determining to transmit the file to be transmitted through the Li-Fi network.
The security level threshold comprises a security level mapping relation table which is preset according to file security level query, and a security level threshold corresponding to the file security level is determined.
In specific implementation, the first network security level is determined to be seven levels, the second network security level is four levels, the electronic device compares the first network security level with the second network security level, determines that the first network security level is higher than the second network security level, judges that the seventh level of the first network security level is greater than a first security threshold, and finally determines that the file to be transmitted is transmitted through the Li-Fi network.
As can be seen, in this example, the electronic device compares the first network security level and the second network security level; if the electronic equipment determines that the first network security level is higher than the second network security level, judging whether the first network security level is greater than a security level threshold value; if the electronic equipment determines that the first network security level is greater than a security level threshold, determining to transmit the file to be transmitted through the Li-Fi network; the method is favorable for improving the security of file transmission and the convenience and the high efficiency of network switching.
In one possible example, the electronic device determines a file transfer policy according to the first network security level and the second network security level, including: the electronic device compares the first network security level and the second network security level; when the electronic equipment detects that the first network security level is the same as the second network security level and is greater than the security level threshold, acquiring first network channel capacity, a first channel frequency band and a first user number of the Li-Fi network according to the first network environment information; the electronic equipment calculates according to the following first preset formulaObtaining a first network stability level, W, of the Li-Fi network1=0.8×X1+0.4×Y1+0.2×Z1Wherein W is1For the first network stability level, X1For said first network channel capacity, Y1For the first channel band, Z1The first number of users; the electronic equipment acquires the second network channel capacity, the second channel frequency band and the second user number of the Wi-Fi network according to the second network environment information; the electronic equipment calculates a second network stability level, W, of the Wi-Fi network according to a second preset formula2=0.8×X2+0.4×Y2+0.2×Z2Wherein W is2For the second network stability level, X2For the second network channel capacity, Y2For the second channel band, Z2The second number of users; the electronic device comparing the first network stability level and the second network stability level; and if the electronic equipment determines that the first network stability grade is higher than the second network stability grade, determining to transmit the file to be transmitted through the Li-Fi network.
Wherein the first network channel capacity comprises a maximum data transfer rate that can be supported by a channel of the Li-Fi network.
In a specific implementation, as shown in fig. 2C, the electronic device compares the first network security level with the second network security level, and determines that the first network security level is the same as the second network security level and both of the first network security level and the second network security level are greater than the security level threshold; acquiring the first network channel capacity X of the L-a of the Li-Fi network according to the first network environment information1A first channel frequency band Y1And the first number of users Z1Determining X1=7,Y1=2,Z10, by the formula W1=0.8×X1+0.4×Y1-0.3×Z1And calculating to obtain a first network stability level W of the Li-Fi network10.8 × 7+0.4 × 2-0.3 × 0 ═ 6.6; the electronic equipment acquires the capacity X of a second network channel of the W-b of the Wi-Fi network according to the second network environment information2A second channel frequency band Y2And a second number of users Z2Determination of X2=8,Y2=1,Z23 by the formula W2=0.8×X2+0.4×Y2-0.3×Z2And calculating to obtain a second network stability level W of the Wi-Fi network2Comparing the first network stability rating W to 0.8 × 8+0.4 × 1-0.3 × 3-5.91And said second network stability level W2,W1Higher than W2And determining to transmit the file to be transmitted through the Li-Fi network L-a.
In this example, the electronic device compares the first network security level with the second network security level, and when it is detected that the first network security level is the same as the second network security level and both are greater than the security level threshold, obtains a first network channel capacity, a first channel frequency band, and a first number of users of the Li-Fi network according to the first network environment information; the electronic equipment calculates a first network stability level, W, of the Li-Fi network according to a first preset formula1=0.8×X1+0.4×Y1+0.2×Z1Wherein W is1For the first network stability level, X1For said first network channel capacity, Y1For the first channel band, Z1The first number of users; meanwhile, the electronic equipment acquires the second network channel capacity, the second channel frequency band and the second user number of the Wi-Fi network according to the second network environment information; the electronic equipment calculates a second network stability level, W, of the Wi-Fi network according to a second preset formula2=0.8×X2+0.4×Y2+0.2×Z2Wherein W is2For the second network stability level, X2For the second network channel capacity, Y2 is the second channel frequency band, Z2The second number of users; the electronic device comparing the first network stability level and the second network stability level; if the electronic equipment determines that the first network stability grade is higher than the second network stability grade, the electronic equipment determines that the Li-Fi is passedAnd the file A to be transmitted is transmitted by the network, so that the high efficiency of network switching and the stability of data transmission are improved.
In one possible example, the electronic device determining a file transfer policy based on the file attribute, the first network environment information, and the second network environment information includes: the electronic equipment determines a first network security level and a first network stability level of the Li-Fi network according to the first network environment information; the electronic equipment determines a second network security level and a second network stability level of the Wi-Fi network according to the second network environment information; when the electronic equipment detects that the first network security level is the same as the second network security level and the first network stability level is the same as the second network stability level, determining the file type of the file to be transmitted according to the file attribute; and the electronic equipment determines a file transmission strategy according to the file type.
The file types comprise video files, audio files, text files and picture files.
In a specific implementation, the electronic device determines a first network security level V1 and a first network stability level W1 of the Li-Fi network according to the first network environment information; the electronic equipment determines a second network security level V2 and a second network stability level W2 of the Wi-Fi network according to the second network environment information; when the electronic equipment detects that the first network security level V1 is the same as the second network security level V2 and the first network stability level W1 is the same as the second network stability level W2, determining that the file type of the file to be transmitted is a video file and determining that the file transmission strategy is to transmit the file to be transmitted through the Wi-Fi network according to the file attributes.
In this example, the electronic device determines a first network security level and a first network stability level of the Li-Fi network according to the first network environment information; the electronic equipment determines a second network security level and a second network stability level of the Wi-Fi network according to the second network environment information; when the electronic equipment detects that the first network security level is the same as the second network security level and the first network stability level is the same as the second network stability level, determining the file type of the file to be transmitted according to the file attribute; the electronic equipment determines a file transmission strategy according to the file type; the method is favorable for more reasonably selecting the network switching and improving the accuracy of the network switching.
In one possible example, the electronic device determines a file transfer policy according to the file type, including: if the electronic device determines that the file type is a video file, determining that the file to be transmitted is transmitted through the Wi-Fi network; if the electronic equipment determines that the file type is an audio file, determining that the file to be transmitted is transmitted through the Wi-Fi network; and if the electronic equipment determines that the file type is a picture file, determining that the file to be transmitted is transmitted through the Li-Fi network.
Therefore, in this example, the electronic device selects different file transmission strategies according to different file types, and performs file transmission by switching a suitable network through the network, which is beneficial to improving the accuracy of network switching.
In one possible example, the electronic device determining a file transfer policy based on the file attribute, the first network environment information, and the second network environment information includes: the electronic equipment determines the file size of the file to be transmitted according to the file attribute; if the electronic equipment determines that the file size is larger than a first file threshold value, acquiring a first anti-interference level and a first network channel capacity of the Li-Fi network according to the first network environment information; the electronic equipment acquires a second anti-interference level and a second network channel capacity of the Wi-Fi network according to the second network environment information; the electronic device compares the first network channel capacity with the second network channel capacity when detecting that the first network interference rejection level is the same as the second network interference rejection level; the electronic equipment determines to transmit the file to be transmitted through the Li-Fi network when detecting that the capacity of the first network channel is higher than or equal to the capacity of the second network channel; and when the electronic equipment detects that the capacity of the first network channel is lower than the capacity of the second network channel, determining to transmit the file to be transmitted through the Wi-Fi network.
In specific implementation, the electronic device determines that the file size of the file to be transmitted is 2GB according to the file attribute, determines that the file size is greater than a first file threshold value 1GB, and acquires a first interference rejection level L1 and a first network channel capacity X1 of the Li-Fi network according to the first network environment information; the electronic equipment acquires a second anti-interference level L2 and a second network channel capacity X2 of the Wi-Fi network according to the second network environment information, when the electronic equipment detects that L1 and L2 are the same, X1 and X2 are compared, X1 is determined to be higher than X2, and the file to be transmitted is determined to be transmitted through the Li-Fi network; and when detecting that the capacity of the first network channel is higher than the capacity of the second network channel, the electronic equipment determines to transmit the file to be transmitted through the Li-Fi network.
As can be seen, in this example, the electronic device determines the file size of the file to be transmitted according to the file attribute; if the electronic equipment determines that the file size is larger than a first file threshold value, acquiring a first anti-interference level and a first network channel capacity of the Li-Fi network according to the first network environment information; the electronic equipment acquires a second anti-interference level and a second network channel capacity of the Wi-Fi network according to the second network environment information; the electronic device compares the first network channel capacity with the second network channel capacity when detecting that the first network interference rejection level is the same as the second network interference rejection level; the electronic equipment determines to transmit the file to be transmitted through the Li-Fi network when detecting that the capacity of the first network channel is higher than or equal to the capacity of the second network channel; when the electronic equipment detects that the capacity of the first network channel is lower than the capacity of the second network channel, determining to transmit the file to be transmitted through the Wi-Fi network; the method is favorable for improving the efficiency and convenience of network switching.
Referring to fig. 3, fig. 3 is a schematic flowchart of a network switching method based on visible light communication according to an embodiment of the present application, and is applied to an electronic device; as shown in the figure, the network switching method based on visible light communication includes:
s301, an electronic device obtains first network environment information of a visible light communication Li-Fi network accessed by the electronic device and second network environment information of a high-fidelity wireless communication Wi-Fi network accessed by the electronic device;
s302, the electronic equipment determines the file attribute of a file to be transmitted;
s303, the electronic equipment determines the file security level of the file to be transmitted according to the file attribute;
s304, if the electronic equipment determines that the file security level is greater than a first security threshold, acquiring a first network source, a first encryption level and a first anti-interference level of the Li-Fi network according to the first network environment information;
s305, the electronic equipment determines a first network security level of the Li-Fi network according to the first network source, the first encryption level and the first anti-interference level;
s306, the electronic equipment acquires a second network source, a second encryption level and a second anti-interference level of the Wi-Fi network according to the second network environment information;
s307, the electronic equipment determines a second network security level of the Wi-Fi network according to the second network source, the second encryption level and the second anti-interference level;
s308, the electronic equipment determines a file transmission strategy according to the first network security level and the second network security level.
S309, the electronic equipment transmits the file to be transmitted according to the file transmission strategy.
It can be seen that, in the embodiment of the present application, a network switching method based on visible light communication is provided, which is applied to an electronic device; the method comprises the following steps: the method comprises the steps that electronic equipment obtains first network environment information of a visible light communication Li-Fi network accessed by the electronic equipment and second network environment information of a high-fidelity wireless communication Wi-Fi network accessed by the electronic equipment, determines file attributes of files to be transmitted, determines file transmission strategies according to the file attributes, the first network environment information and the second network environment information, and finally transmits the files to be transmitted according to the file transmission strategies; therefore, when the electronic equipment performs network switching based on visible light network communication, a file transmission strategy is determined according to the file attribute, the first network environment information and the second network environment information, and the file to be transmitted is transmitted according to the file transmission strategy, so that the high efficiency and convenience of network switching are improved.
In addition, the electronic equipment determines the file security level of the file to be transmitted according to the file attribute, if the file security level is determined to be greater than a first security threshold value, a first network source, a first encryption level and a first anti-interference level of the Li-Fi network are obtained according to the first network environment information, then the first network security level of the Li-Fi network is determined, meanwhile, a second network source, a second encryption level and a second anti-interference level of the Wi-Fi network are obtained according to the second network environment information, a second network security level of the Wi-Fi network is determined, and finally, a file transmission strategy is determined according to the first network security level and the second network security level; the method is favorable for improving the security of file transmission, and is favorable for improving the accuracy and the efficiency of network switching by selecting proper network transmission files according to the file attributes and the network security level.
Consistent with the embodiments shown in fig. 2A and fig. 3, please refer to fig. 4, and fig. 4 is a schematic structural diagram of an electronic device 400 provided in an embodiment of the present application, as shown in the figure, the electronic device 400 includes an application processor 410, a memory 420, a communication interface 430, and one or more programs 421, where the one or more programs 421 are stored in the memory 420 and configured to be executed by the application processor 410, and the one or more programs 421 include instructions for performing the following steps;
acquiring first network environment information of a visible light communication Li-Fi network accessed by the electronic equipment and second network environment information of a high-fidelity wireless communication Wi-Fi network accessed by the electronic equipment;
determining the file attribute of a file to be transmitted;
determining a file transmission strategy according to the file attribute, the first network environment information and the second network environment information;
and transmitting the file to be transmitted according to the file transmission strategy.
It can be seen that, in the embodiment of the present application, a network switching method based on visible light communication is provided, which is applied to an electronic device; the method comprises the following steps: the method comprises the steps that electronic equipment obtains first network environment information of a visible light communication Li-Fi network accessed by the electronic equipment and second network environment information of a high-fidelity wireless communication Wi-Fi network accessed by the electronic equipment, determines file attributes of files to be transmitted, determines file transmission strategies according to the file attributes, the first network environment information and the second network environment information, and finally transmits the files to be transmitted according to the file transmission strategies; therefore, when the electronic equipment performs network switching based on visible light network communication, a file transmission strategy is determined according to the file attribute, the first network environment information and the second network environment information, and the file to be transmitted is transmitted according to the file transmission strategy, so that the high efficiency and convenience of network switching are improved.
In one possible example, the determining a file transfer policy according to the file attribute, the first network environment information, and the second network environment information, the instructions in the program are specifically configured to: determining the file security level of the file to be transmitted according to the file attribute; if the file security level is determined to be greater than a first security threshold value, acquiring a first network source, a first encryption level and a first anti-interference level of the Li-Fi network according to the first network environment information; determining a first network security level of the Li-Fi network according to the first network source, the first encryption level and the first interference rejection level; acquiring a second network source, a second encryption level and a second anti-interference level of the Wi-Fi network according to the second network environment information; determining a second network security level of the Wi-Fi network according to the second network source, the second encryption level, and the second anti-interference level; and determining a file transmission strategy according to the first network security level and the second network security level.
In one possible example, the determining a file transfer policy according to the first network security level and the second network security level includes: comparing the first network security level and the second network security level; if the first network security level is determined to be higher than the second network security level, judging whether the first network security level is greater than a security level threshold value; and if the first network security level is determined to be greater than the security level threshold, determining that the file to be transmitted is transmitted through the Li-Fi network.
In one possible example, the determining a file transfer policy according to the first network security level and the second network security level includes: comparing the first network security level and the second network security level; when the first network security level is detected to be the same as the second network security level and is larger than the security level threshold, acquiring first network channel capacity, a first channel frequency band and a first user number of the Li-Fi network according to the first network environment information; calculating a first network stability grade, W, of the Li-Fi network according to a first preset formula1=0.8×X1+0.4×Y1-0.2×Z1Wherein W is1For the first network stability level, X1For said first network channel capacity, Y1For the first channel band, Z1The first number of users; acquiring the second network channel capacity and the second information of the Wi-Fi network according to the second network environment informationA frequency band and a second number of users; calculating a second network stability grade, W, of the Wi-Fi network according to a second preset formula2=0.8×X2+0.4×Y2-0.2×Z2Wherein W is2For the second network stability level, X2For the second network channel capacity, Y2For the second channel band, Z2The second number of users; comparing the first network stability level and the second network stability level; and if the first network stability grade is higher than the second network stability grade, determining that the file to be transmitted is transmitted through the Li-Fi network.
In one possible example, the determining a file transfer policy according to the file attribute, the first network environment information, and the second network environment information, the instructions in the program are specifically configured to: determining a first network security level and a first network stability level of the Li-Fi network according to the first network environment information; determining a second network security level and a second network stability level of the Wi-Fi network according to the second network environment information; when the first network security level is detected to be the same as the second network security level and the first network stability level is detected to be the same as the second network stability level, determining the file type of the file to be transmitted according to the file attribute; and determining a file transmission strategy according to the file type.
In one possible example, the determining a file transfer policy according to the file type includes: if the file type is determined to be a video file, determining that the file to be transmitted is transmitted through the Wi-Fi network; if the file type is determined to be an audio file, determining that the file to be transmitted is transmitted through the Wi-Fi network; and if the file type is determined to be the picture file, determining that the file to be transmitted is transmitted through the Li-Fi network.
In one possible example, the determining a file transfer policy according to the file attribute, the first network environment information, and the second network environment information, the instructions in the program are specifically configured to: determining the file size of the file to be transmitted according to the file attribute; if the file size is larger than a first file threshold value, acquiring a first anti-interference level and a first network channel capacity of the Li-Fi network according to the first network environment information; acquiring a second anti-interference level and a second network channel capacity of the Wi-Fi network according to the second network environment information; comparing the first network channel capacity to the second network channel capacity upon detecting that the first network interference rejection level and the second network interference rejection level are the same; when detecting that the first network channel capacity is higher than or equal to the second network channel capacity, determining to transmit the file to be transmitted through the Li-Fi network; and when the first network channel capacity is lower than the second network channel capacity, determining to transmit the file to be transmitted through the Wi-Fi network.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided 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 application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 5 is a block diagram of functional units of a network switching apparatus 500 based on visible light communication according to an embodiment of the present application. The network switching device 500 based on visible light communication is applied to an electronic device, and comprises a processing unit 501, a communication unit 502 and a storage unit 503, wherein,
the processing unit 501 is configured to obtain first network environment information of a visible light communication Li-Fi network accessed by the electronic device and second network environment information of a high-fidelity wireless communication Wi-Fi network accessed by the electronic device; the file attribute determining module is used for determining the file attribute of the file to be transmitted; and determining a file transmission policy according to the file attribute, the first network environment information and the second network environment information; and the file transmission device is used for transmitting the file to be transmitted according to the file transmission strategy.
It can be seen that, in the embodiment of the present application, a network switching method based on visible light communication is provided, which is applied to an electronic device; the method comprises the following steps: the method comprises the steps that electronic equipment obtains first network environment information of a visible light communication Li-Fi network accessed by the electronic equipment and second network environment information of a high-fidelity wireless communication Wi-Fi network accessed by the electronic equipment, determines file attributes of files to be transmitted, determines file transmission strategies according to the file attributes, the first network environment information and the second network environment information, and finally transmits the files to be transmitted according to the file transmission strategies; therefore, when the electronic equipment performs network switching based on visible light network communication, a file transmission strategy is determined according to the file attribute, the first network environment information and the second network environment information, and the file to be transmitted is transmitted according to the file transmission strategy, so that the high efficiency and convenience of network switching are improved.
In a possible example, the processing unit 501 is specifically configured to determine a file transmission policy according to the file attribute, the first network environment information, and the second network environment information, and to: determining the file security level of the file to be transmitted according to the file attribute; if the file security level is determined to be greater than a first security threshold value, acquiring a first network source, a first encryption level and a first anti-interference level of the Li-Fi network according to the first network environment information; determining a first network security level of the Li-Fi network according to the first network source, the first encryption level and the first interference rejection level; acquiring a second network source, a second encryption level and a second anti-interference level of the Wi-Fi network according to the second network environment information; determining a second network security level of the Wi-Fi network according to the second network source, the second encryption level, and the second anti-interference level; and determining a file transmission strategy according to the first network security level and the second network security level.
In a possible example, the determining a file transmission policy according to the first network security level and the second network security level is specifically configured to: comparing the first network security level and the second network security level; if the first network security level is determined to be higher than the second network security level, judging whether the first network security level is greater than a security level threshold value; and if the first network security level is determined to be greater than the security level threshold, determining that the file to be transmitted is transmitted through the Li-Fi network.
In a possible example, the determining a file transmission policy according to the first network security level and the second network security level is specifically configured to: comparing the first network security level and the second network security level; when the first network security level is detected to be the same as the second network security level and is larger than the security level threshold, acquiring first network channel capacity, a first channel frequency band and a first user number of the Li-Fi network according to the first network environment information; calculating a first network stability grade, W, of the Li-Fi network according to a first preset formula1=0.8×X1+0.4×Y1-0.2×Z1Which isIn, W1For the first network stability level, X1For said first network channel capacity, Y1For the first channel band, Z1The first number of users; acquiring a second network channel capacity, a second channel frequency band and a second user number of the Wi-Fi network according to the second network environment information; calculating a second network stability grade, W, of the Wi-Fi network according to a second preset formula2=0.8×X2+0.4×Y2-0.2×Z2Wherein W is2For the second network stability level, X2For the second network channel capacity, Y2For the second channel band, Z2The second number of users; comparing the first network stability level and the second network stability level; and if the first network stability grade is higher than the second network stability grade, determining that the file to be transmitted is transmitted through the Li-Fi network.
In a possible example, the processing unit 501 is specifically configured to determine a file transmission policy according to the file attribute, the first network environment information, and the second network environment information, and to: determining a first network security level and a first network stability level of the Li-Fi network according to the first network environment information; determining a second network security level and a second network stability level of the Wi-Fi network according to the second network environment information; when the first network security level is detected to be the same as the second network security level and the first network stability level is detected to be the same as the second network stability level, determining the file type of the file to be transmitted according to the file attribute; and determining a file transmission strategy according to the file type.
In a possible example, the determining a file transmission policy according to the file type includes: if the file type is determined to be a video file, determining that the file to be transmitted is transmitted through the Wi-Fi network; if the file type is determined to be an audio file, determining that the file to be transmitted is transmitted through the Wi-Fi network; and if the file type is determined to be the picture file, determining that the file to be transmitted is transmitted through the Li-Fi network.
In a possible example, the processing unit 501 is specifically configured to determine a file transmission policy according to the file attribute, the first network environment information, and the second network environment information, and to: determining the file size of the file to be transmitted according to the file attribute; if the file size is larger than a first file threshold value, acquiring a first anti-interference level and a first network channel capacity of the Li-Fi network according to the first network environment information; acquiring a second anti-interference level and a second network channel capacity of the Wi-Fi network according to the second network environment information; comparing the first network channel capacity to the second network channel capacity upon detecting that the first network interference rejection level and the second network interference rejection level are the same; when detecting that the first network channel capacity is higher than or equal to the second network channel capacity, determining to transmit the file to be transmitted through the Li-Fi network; and when the first network channel capacity is lower than the second network channel capacity, determining to transmit the file to be transmitted through the Wi-Fi network.
It can be understood that, since the method embodiment and the apparatus embodiment are different presentation forms of the same technical concept, the content of the method embodiment portion in the present application should be synchronously adapted to the apparatus embodiment portion, and is not described herein again.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A network switching method based on visible light communication is characterized in that the method is applied to electronic equipment; the method comprises the following steps:
acquiring first network environment information of a visible light communication Li-Fi network accessed by the electronic equipment and second network environment information of a high-fidelity wireless communication Wi-Fi network accessed by the electronic equipment; the network environment information comprises a network source, an anti-interference level, a network encryption level, a network channel frequency band, the number of users, an encryption level and a network channel capacity; determining the network security level of the network according to the network source, the encryption level, the anti-interference level and the network encryption level, and determining the network stability level of the network according to the network channel frequency band, the number of users and the network channel quality;
determining the file attribute of a file to be transmitted; the file attributes comprise file security, file type and file encryption condition;
determining a file transmission policy according to the file attribute, the first network environment information and the second network environment information, including: determining the file transmission strategy according to the file attribute, and the network security level and the network stability level respectively corresponding to the first network environment information and the second network environment information;
and transmitting the file to be transmitted according to the file transmission strategy.
2. The method of claim 1, wherein determining a file transfer policy based on the file attributes, the first network environment information, and the second network environment information comprises:
determining the file security level of the file to be transmitted according to the file attribute;
if the file security level is determined to be greater than a first security threshold value, acquiring a first network source, a first encryption level and a first anti-interference level of the Li-Fi network according to the first network environment information;
determining a first network security level of the Li-Fi network according to the first network source, the first encryption level and the first interference rejection level;
acquiring a second network source, a second encryption level and a second anti-interference level of the Wi-Fi network according to the second network environment information;
determining a second network security level of the Wi-Fi network according to the second network source, the second encryption level, and the second anti-interference level;
and determining a file transmission strategy according to the first network security level and the second network security level.
3. The method of claim 2, wherein determining a file transfer policy based on the first network security level and the second network security level comprises:
comparing the first network security level and the second network security level;
if the first network security level is determined to be higher than the second network security level, judging whether the first network security level is greater than a security level threshold value;
and if the first network security level is determined to be greater than the security level threshold, determining that the file to be transmitted is transmitted through the Li-Fi network.
4. The method of claim 2, wherein determining a file transfer policy based on the first network security level and the second network security level comprises:
comparing the first network security level and the second network security level;
when the first network security level is detected to be the same as the second network security level and is larger than the security level threshold, acquiring first network channel capacity, a first channel frequency band and a first user number of the Li-Fi network according to the first network environment information;
calculating a first network stability grade, W, of the Li-Fi network according to a first preset formula1=0.8×X1+0.4×Y1-0.2×Z1Wherein W is1Stabilizing the first networkRating, X1For said first network channel capacity, Y1For the first channel band, Z1The first number of users;
acquiring a second network channel capacity, a second channel frequency band and a second user number of the Wi-Fi network according to the second network environment information;
calculating a second network stability grade, W, of the Wi-Fi network according to a second preset formula2=0.8×X2+0.4×Y2-0.2×Z2Wherein W is2For the second network stability level, X2For the second network channel capacity, Y2For the second channel band, Z2The second number of users;
comparing the first network stability level and the second network stability level;
and if the first network stability grade is higher than the second network stability grade, determining that the file to be transmitted is transmitted through the Li-Fi network.
5. The method of claim 1, wherein determining a file transfer policy based on the file attributes, the first network environment information, and the second network environment information comprises:
determining a first network security level and a first network stability level of the Li-Fi network according to the first network environment information;
determining a second network security level and a second network stability level of the Wi-Fi network according to the second network environment information;
when the first network security level is detected to be the same as the second network security level and the first network stability level is detected to be the same as the second network stability level, determining the file type of the file to be transmitted according to the file attribute;
and determining a file transmission strategy according to the file type.
6. The method of claim 5, wherein determining a file transfer policy based on the file type comprises:
if the file type is determined to be a video file, determining that the file to be transmitted is transmitted through the Wi-Fi network;
if the file type is determined to be an audio file, determining that the file to be transmitted is transmitted through the Wi-Fi network;
and if the file type is determined to be the picture file, determining that the file to be transmitted is transmitted through the Li-Fi network.
7. The method of claim 1, wherein determining a file transfer policy based on the file attributes, the first network environment information, and the second network environment information comprises:
determining the file size of the file to be transmitted according to the file attribute;
if the file size is larger than a first file threshold value, acquiring a first anti-interference level and a first network channel capacity of the Li-Fi network according to the first network environment information;
acquiring a second anti-interference level and a second network channel capacity of the Wi-Fi network according to the second network environment information;
comparing the first network channel capacity to the second network channel capacity upon detecting that the first network interference rejection level and the second network interference rejection level are the same;
when detecting that the first network channel capacity is higher than or equal to the second network channel capacity, determining to transmit the file to be transmitted through the Li-Fi network;
and when the first network channel capacity is lower than the second network channel capacity, determining to transmit the file to be transmitted through the Wi-Fi network.
8. A network switching device based on visible light communication is characterized in that the network switching device is applied to electronic equipment; the network switching device based on visible light communication comprises a processing unit, a communication unit and a storage unit, wherein,
the processing unit is used for acquiring first network environment information of a visible light communication Li-Fi network accessed by the electronic equipment and second network environment information of a high-fidelity wireless communication Wi-Fi network accessed by the electronic equipment; the file attribute determining module is used for determining the file attribute of the file to be transmitted; and determining a file transmission policy according to the file attribute, the first network environment information and the second network environment information; the file transmission strategy is used for transmitting the file to be transmitted according to the file transmission strategy; the file attributes comprise file security, file type and file encryption condition; the network environment information comprises a network source, an anti-interference level, a network encryption level, a network channel frequency band, the number of users, an encryption level and a network channel capacity, wherein the network security level of the network is determined according to the network source, the encryption level, the anti-interference level and the network encryption level, and the network stability level of the network is determined according to the network channel frequency band, the number of users and the network channel quality;
the processing unit is further configured to determine the file transmission policy according to the file attribute, and a network security level and a network stability level corresponding to the first network environment information and the second network environment information, respectively.
9. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-7.
CN201910828201.3A 2019-09-03 2019-09-03 Network switching method based on visible light communication and related product Active CN110417470B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910828201.3A CN110417470B (en) 2019-09-03 2019-09-03 Network switching method based on visible light communication and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910828201.3A CN110417470B (en) 2019-09-03 2019-09-03 Network switching method based on visible light communication and related product

Publications (2)

Publication Number Publication Date
CN110417470A CN110417470A (en) 2019-11-05
CN110417470B true CN110417470B (en) 2021-07-27

Family

ID=68370298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910828201.3A Active CN110417470B (en) 2019-09-03 2019-09-03 Network switching method based on visible light communication and related product

Country Status (1)

Country Link
CN (1) CN110417470B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112821947B (en) * 2019-11-18 2022-05-20 Oppo广东移动通信有限公司 Light fidelity LiFi communication control method, device, equipment and medium of electronic equipment
CN112887022B (en) * 2019-11-29 2022-11-25 无锡祥生医疗科技股份有限公司 Ultrasonic image data transmission method and terminal ultrasonic equipment
CN114374683A (en) * 2021-12-20 2022-04-19 上海金仕达软件科技有限公司 Archive file management method and system and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105052203A (en) * 2014-02-10 2015-11-11 深圳市大疆创新科技有限公司 Adaptive communication mode switching
CN105451288A (en) * 2016-01-07 2016-03-30 中国联合网络通信集团有限公司 Method for switching between Wi-Fi network and Li-Fi network, and network access device
CN107846714A (en) * 2017-10-31 2018-03-27 中国农业大学 The switching method and equipment of a kind of visible light communication and WiFi heterogeneous systems

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014103488A (en) * 2012-11-19 2014-06-05 Sony Corp Communication apparatus and program
CN107404740B (en) * 2017-08-07 2019-04-12 Oppo广东移动通信有限公司 Method for switching network, device and the terminal device of safety
CN110049525A (en) * 2019-04-08 2019-07-23 Oppo广东移动通信有限公司 Method for connecting network, device, electronic equipment and medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105052203A (en) * 2014-02-10 2015-11-11 深圳市大疆创新科技有限公司 Adaptive communication mode switching
CN105451288A (en) * 2016-01-07 2016-03-30 中国联合网络通信集团有限公司 Method for switching between Wi-Fi network and Li-Fi network, and network access device
CN107846714A (en) * 2017-10-31 2018-03-27 中国农业大学 The switching method and equipment of a kind of visible light communication and WiFi heterogeneous systems

Also Published As

Publication number Publication date
CN110417470A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN110417470B (en) Network switching method based on visible light communication and related product
US11648466B2 (en) Data transmission method and related apparatus
CN106604403B (en) Miracast protocol-based channel selection method and system
CN109495880B (en) Data transmission method and related device
US10716043B2 (en) Access point handover method and device
CN108881012B (en) Link aggregation method and related product
CN108040367A (en) A kind of UE bands of position update method, access network entity, UE and core network entity
CN103561404A (en) Method and device for having access to network
US11178624B2 (en) Method of adjusting transmission power of terminal, mobile terminal, and storage device
AU2012239202A1 (en) Wireless local area network authentication method and mobile terminal
CN109379498B (en) Electromagnetic interference control method and related device
CN105792290A (en) Method and device for controlling intelligent terminal to perform wireless roaming
CN104185057B (en) A kind of Wi Fi Display display methods and device
CN116321152A (en) Wireless high-fidelity Wi-Fi connection control method and related products
CN112738745A (en) Method for controlling network connection and related product
CN107222937B (en) Data transmission method, device and terminal
CN106028323B (en) network access method, terminal and access point
JP6169642B2 (en) Screen sharing server, screen sharing method, and screen sharing program
CN112385203B (en) Identification display control method and device
JP2018510565A (en) Method and apparatus for selective contention in a mixed wireless communication system
CN109392018B (en) Data transmission method and related device
CN106060825B (en) Client identification card copying reminding method and server
CN112423376B (en) Wireless high-fidelity Wi-Fi access point selection method and related device
EP3554142A1 (en) Wireless fidelity (wifi) connection method and related product
CN115996438A (en) Network access method, device, equipment 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