Communication method and device for multiple operating systems and electronic equipment
By dynamically updating and retaining network configuration information, the problems of low efficiency and cumbersome configuration modification of multi-operating system communication during network switching are solved, and efficient network switching and simplified configuration management are achieved.
Patent Information
- Application Number
- CN202411770681.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-04
- Publication Date
- 2025-03-14
AI Technical Summary
The existing multi-operating system communication methods are inefficient during network switching, which may lead to network connection interruption, and cumbersome static configuration modifications, affecting development efficiency.
The target operating system parses the system configuration information, update the network configuration information dynamically, and retain the previous network configuration information during network switching, achieving flexible system configuration and efficient network switching.
It improves network switching efficiency, avoids network interruption, simplifies the system configuration modification process, and improves development efficiency.
Smart Images

Figure CN119629654A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a communication method, device and electronic equipment for multiple operating systems. Background Art
[0002] At present, some car computers or smart terminals are installed with multiple operating systems, such as a stable multi-user network operating system Linux, an Android system derived from ARCN, etc. Among them, ACRN is a lightweight, scalable, and secure virtualization solution designed to provide an efficient virtualization environment for the Internet of Things and embedded systems. ACRN can run multiple types of operating systems. Among the multiple operating systems of the car computer, one operating system is in the foreground and can interact with the user, and the other operating systems are in the background. Usually, multiple operating systems communicate and interact with each other through Ethernet.
[0003] In the existing internal communication based on multiple operating systems, taking operating system A and operating system B as an example, the intelligent terminal displays the interface of operating system A in the foreground on the screen, and operating system B is in the background; in the business communication between operating systems A and B, the interface is usually operated in operating system A, and related business communications are carried out with operating system B through Ethernet communication.
[0004] In the existing methods, multiple operating systems usually communicate through Ethernet, and related communications are performed by configuring the default IP addresses of multiple operating systems. Therefore, during the operation of operating system A, if the operating system switches networks or restarts, the communication between operating system A and system B will be interrupted and unable to communicate. The usual practice is to configure the static address resolution protocol (ARP) in the system, map the unique operating system media access control (MAC) address and the configured Internet Protocol (IP) address together, and when the operating system is abnormal, the corresponding relationship between the IP and MAC addresses can be found through the configured static ARP, thereby triggering communication.
[0005] However, when the operating system is already connected to Ethernet, if you connect to another network, the previous network IP address configuration will be cleared, resulting in low network switching efficiency and possible network connection interruption. In addition, static configuration is fixed, and if you want to modify it, you need to update the version, which is cumbersome and leads to low development efficiency. Summary of the invention
[0006] In view of the above problems, embodiments of the present application provide a communication method, device and electronic device for multiple operating systems that overcome the above problems or at least partially solve the above problems.
[0007] In a first aspect, an embodiment of the present application provides a communication method for multiple operating systems, which is applied to an electronic device, and the method includes:
[0008] In a case where the electronic device establishes a communication connection with the first network through the first network configuration information corresponding to the target operating system, if a first input to the target operating system is received, in response to the first input, the first system configuration information corresponding to the target operating system is updated to second system configuration information, the electronic device runs multiple operating systems, and the target operating system is any one of the multiple operating systems;
[0009] Parsing the second system configuration information through the target operating system to obtain second network configuration information, and updating the first network configuration information to the second network configuration information;
[0010] A communication connection with the second network is established based on the second network configuration information, and the communication connection with the first network is disconnected, and the first network configuration information is retained.
[0011] Optionally, the method further comprises:
[0012] When the target operating system is in a startup state, obtaining first system configuration information corresponding to the target operating system;
[0013] Parsing the first system configuration information by the target operating system to obtain first network configuration information corresponding to the target operating system;
[0014] A communication connection with the first network is established based on the first network configuration information.
[0015] Optionally, the method further comprises:
[0016] When the target operating system runs abnormally, the target operating system is controlled to restart, and the first system configuration information of the target operating system is initialized.
[0017] Optionally, the first system configuration information or the second system configuration information includes: at least one of an Internet Protocol IP address, a subnet mask, and a Media Access Control MAC address.
[0018] Optionally, the method further comprises:
[0019] Acquire operation information corresponding to each operating system in the multiple operating systems and the second network configuration information;
[0020] The corresponding operation information of each operating system and the second network configuration information are synchronized to other operating systems through the media system in the multiple operating systems.
[0021] In a second aspect, an embodiment of the present application further provides a communication device for multiple operating systems, which is applied to an electronic device, and the device includes:
[0022] a first updating module, configured to update the first system configuration information corresponding to the target operating system to second system configuration information in response to a first input received when the electronic device establishes a communication connection with the first network through the first network configuration information corresponding to the target operating system, wherein the electronic device runs multiple operating systems and the target operating system is any one of the multiple operating systems;
[0023] A second updating module, configured to parse the second system configuration information through the target operating system to obtain second network configuration information, and update the first network configuration information to the second network configuration information;
[0024] The first communication module is used to establish a communication connection with the second network based on the second network configuration information, disconnect the communication connection with the first network, and retain the first network configuration information.
[0025] Optionally, the device further comprises:
[0026] A first acquisition module, configured to acquire first system configuration information corresponding to the target operating system when the target operating system is in a startup state;
[0027] A parsing module, configured to parse the first system configuration information through the target operating system to obtain first network configuration information corresponding to the target operating system;
[0028] The second communication module is used to establish a communication connection with the first network based on the first network configuration information.
[0029] Optionally, the device further comprises:
[0030] The processing module is used to control the target operating system to restart and initialize the first system configuration information of the target operating system when the target operating system runs abnormally.
[0031] Optionally, the first system configuration information or the second system configuration information includes: at least one of an Internet Protocol IP address, a subnet mask, and a Media Access Control MAC address.
[0032] Optionally, the device further comprises:
[0033] A second acquisition module, used to acquire the operation information corresponding to each operating system in the multiple operating systems and the second network configuration information;
[0034] The synchronization module is used to synchronize the corresponding operation information of each operating system and the second network configuration information to other operating systems through the media system in the multiple operating systems.
[0035] In a third aspect, an embodiment of the present application further provides an electronic device, including a memory, a transceiver, and a processor:
[0036] A memory for storing a computer program; a transceiver for sending and receiving data under the control of a processor; and a processor for reading the computer program in the memory and executing the method as described in the first aspect above.
[0037] In a fourth aspect, an embodiment of the present application further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the method described in the first aspect above.
[0038] In the above embodiment of the present application, the electronic device runs multiple operating systems. When the electronic device establishes a communication connection with the first network through the first network configuration information corresponding to the target operating system in the multiple operating systems, if a first input to the target operating system is received, the first system configuration information corresponding to the target operating system is updated to the second system configuration information in response to the first input. Thus, the system configuration information is dynamic configuration information, which can be flexibly modified and updated, thereby improving development efficiency. In addition, the second system configuration information is parsed by the target operating system to obtain the second network configuration information, and the first network configuration information is updated to the second network configuration information. A communication connection with the second network is established based on the second network configuration information, and the communication connection with the first network is disconnected, and the first network configuration information is retained, that is, the network configuration information of the previous network can be retained when the network is switched, which can not only improve the network switching efficiency, but also avoid network interruption. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0040] Figure 1A flowchart of the communication method for multiple operating systems provided in an embodiment of the present application;
[0041] Figure 2 An architecture diagram of a multi-operating system provided in an embodiment of the present application;
[0042] Figure 3 A communication flow chart of multiple operating systems provided in an embodiment of the present application;
[0043] Figure 4 A structural block diagram of a communication device for multiple operating systems provided in an embodiment of the present application;
[0044] Figure 5 A structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In the embodiments of the present application, the term "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0046] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0048] Specifically, the embodiment of the present application provides a communication method for multiple operating systems, which can be applied to electronic devices, such as Figure 1 As shown, the following steps may be specifically included:
[0049] Step 101, when the electronic device establishes a communication connection with a first network through first network configuration information corresponding to a target operating system, if a first input to the target operating system is received, then in response to the first input, the first system configuration information corresponding to the target operating system is updated to second system configuration information, and the electronic device runs multiple operating systems, and the target operating system is any one of the multiple operating systems.
[0050] Specifically, the electronic device runs multiple operating systems, the target operating system is any one of the multiple operating systems, the multiple operating systems communicate with each other by handshaking, and different operating systems are isolated by configuring a virtual local area network (VLAN) to enable related services to communicate securely.
[0051] Each operating system communicates according to the communication process of the target operating system. The following takes the target operating system as an example to illustrate the communication process of the operating system:
[0052] The target operating system corresponds to the first network configuration information and the first system configuration information. The electronic device obtains the first network configuration information corresponding to the target operating system, and establishes a communication connection with the first network (such as Ethernet) through the first network configuration information, thereby establishing a communication connection with the first network when the electronic device runs the target operating system. If the electronic device receives a first input from the user to the target operating system, the electronic device updates the first system configuration information corresponding to the target operating system in response to the first input, and obtains the second system configuration information, which indicates that the first system configuration information is dynamic configuration information, which can be dynamically updated according to needs and user input.
[0053] The first system configuration information or the second system configuration information includes but is not limited to at least one of an Internet Protocol IP address, a subnet mask, and a Media Access Control MAC address. The first system configuration information can be stored in an Extensible Markup Language (XML) file, and the second system configuration information obtained after the first system configuration information is updated is also stored in the XML file.
[0054] It should be noted that the first input may be an input operation performed by the user on a display screen corresponding to the target operating system of the electronic device, such as a code input operation, a code rewriting operation, and the like.
[0055] Step 102: parsing the second system configuration information through the target operating system to obtain second network configuration information, and updating the first network configuration information to the second network configuration information.
[0056] Specifically, the electronic device parses the second system configuration information in the XML file through the core service of the target operating system to obtain the parsed second network configuration information. Since the first system configuration information is parsed to obtain the first network configuration information, the first system configuration information is updated to the second system configuration information, thereby updating the first network configuration information to the second network configuration information, that is, the network configuration information is updated following the system configuration information.
[0057] Among them, the core service is an application component that can perform long-running operations in the background without providing a user interface. Configure the core service in each operating system and integrate related businesses on the core service. It is independent of the platform, has good portability, and reduces the workload.
[0058] Step 103: establish a communication connection with the second network based on the second network configuration information, disconnect the communication connection with the first network, and retain the first network configuration information.
[0059] Specifically, when the electronic device runs the target operating system, it establishes a communication connection with the second network based on the second network configuration information, disconnects the previous communication connection with the first network, and retains the first network configuration information, that is, the network configuration information of the previous network can be retained during network switching to improve network switching efficiency.
[0060] In the above embodiment of the present application, the electronic device runs multiple operating systems. When the electronic device establishes a communication connection with the first network through the first network configuration information corresponding to the target operating system in the multiple operating systems, if a first input to the target operating system is received, the first system configuration information corresponding to the target operating system is updated to the second system configuration information in response to the first input. Thus, the system configuration information is dynamic configuration information, which can be flexibly modified and updated, thereby improving development efficiency. In addition, the second system configuration information is parsed by the target operating system to obtain the second network configuration information, and the first network configuration information is updated to the second network configuration information. A communication connection with the second network is established based on the second network configuration information, and the communication connection with the first network is disconnected, and the first network configuration information is retained, that is, the network configuration information of the previous network can be retained when the network is switched, so that the network switching efficiency can be improved when the network is frequently switched, and the network interruption can be avoided.
[0061] As an optional specific embodiment, before step 101, the method may further include:
[0062] When the target operating system is in a startup state, obtaining first system configuration information corresponding to the target operating system;
[0063] Parsing the first system configuration information by the target operating system to obtain first network configuration information corresponding to the target operating system;
[0064] A communication connection with the first network is established based on the first network configuration information.
[0065] Specifically, when the target operating system is started and the core services under the target operating system are initialized, the electronic device obtains the XML file corresponding to the target operating system, in which the first system configuration information is stored. The electronic device parses the first system configuration information through the core services of the target operating system to obtain the first network configuration information, and the electronic device establishes a communication connection with the first network based on the first network configuration information when running the target operating system. Among them, using the core service as the hub of the upper and lower layers makes function customization more flexible, and an expansion interface can be reserved to facilitate customization of related system configuration information, increase scalability, and is imperceptible to the application, facilitating rapid development of applications.
[0066] It should be noted that if the electronic device does not obtain the XML file corresponding to the target operating system, the preset system configuration information is used as the first system configuration information.
[0067] It is understandable that when the target operating system is each operating system among multiple operating systems, each operating system obtains its own corresponding first network configuration information in the manner of the target operating system and establishes a communication connection with the first network.
[0068] As an optional specific embodiment, the method may further include:
[0069] When the target operating system runs abnormally, the target operating system is controlled to restart, and the first system configuration information of the target operating system is initialized.
[0070] Specifically, when the target operating system runs abnormally, in order to improve the stability of communication and effectively ensure the normal operation of the business, when the electronic device controls the target operating system to restart, it is necessary to synchronously trigger the core service to restart along with the target operating system and reconfigure the IP and other related first system configuration information.
[0071] As an optional specific embodiment, the method further includes:
[0072] Acquire operation information corresponding to each operating system in the multiple operating systems and the second network configuration information;
[0073] The corresponding operation information of each operating system and the second network configuration information are synchronized to other operating systems through the media system in the multiple operating systems.
[0074] Specifically, each of the multiple operating systems corresponds to operating information and second network configuration information, and the multiple operating systems include a media system and multiple other operating systems. The electronic device synchronously shares the operating information and the second network configuration information of each operating system through the media system, so that the operating information and the second network configuration information are shared between multiple other operating systems.
[0075] The communication between the above-mentioned multiple operating systems is described below through a specific example:
[0076] like Figure 2 and Figure 3 As shown, the media system is Dom0, and the other operating systems are the first operating system AndroidOS and the second operating system Other OS. Android OS, Other OS, and Dom0 are all configured with VLAN isolation to isolate the operating systems. Using VLAN isolation communication can ensure the security of business communication. Android OS, Other OS, and Dom0 are all connected to Ethernet and dynamically configured with IP addresses or subnet masks.
[0077] Communication between Android OS and media system: First, Android OS sends a handshake request to Dom0. After receiving the handshake request, Dom0 replies with feedback information to Android OS, thereby completing the handshake between the two parties. Then Android OS and Dom0 start related business communications.
[0078] Similarly, the communication process between Other OS and Dom0 is similar to that between Android OS and Dom0, which is handshake first and then communication.
[0079] like Figure 3 As shown, for Android OS: start Android OS and initialize core services, and dynamically configure IP address or subnet mask. And restart Android OS when Android OS runs abnormally, and initialize the first system configuration information. When Android OS switches networks, the network configuration information of the original network is retained.
[0080] For Other OS: Start Other OS and initialize core services, and dynamically configure IP address or subnet mask. When Other OS runs abnormally, restart Other OS and initialize the first system configuration information. When Other OS switches networks, retain the network configuration information of the original network.
[0081] For Dom0: Start Dom0 and initialize core services, and dynamically configure the IP address or subnet mask. When Dom0 runs abnormally, restart Dom0 and initialize the first system configuration information. When Dom0 switches networks, the network configuration information of the original network is retained. In addition, Dom0 shares the running information of Android OS and Other OS and the first system configuration information with each other.
[0082] In summary, in the above embodiments of the present application, the electronic device runs multiple operating systems and shares information of other operating systems through the media system, which can improve the business interaction of multiple operating systems, effectively maintain and ensure the stability of communication of multiple operating system services, enhance the user experience, and improve the convenience of user operation. In addition, the system configuration information is dynamic configuration information, which can be flexibly modified and updated, thereby improving development efficiency. In addition, the network configuration information of the previous network can be retained when the network is switched, so as to improve the network switching efficiency when the network is frequently switched, and avoid network interruptions. In addition, core services are configured in each operating system, and related businesses are integrated into the core services. It is not platform-dependent, has good portability, is convenient for rapid development of applications, has no related compatibility issues, and can be quickly built for different platforms to reduce workload.
[0083] The above introduces the communication method of multiple operating systems provided in the embodiment of the present application. The following will introduce the communication device of multiple operating systems provided in the embodiment of the present application in conjunction with the accompanying drawings.
[0084] like Figure 4 As shown, the embodiment of the present application further provides a communication device 400 of multiple operating systems, which is applied to an electronic device, and the device includes:
[0085] A first updating module 401 is used for, in the case where the electronic device establishes a communication connection with the first network through the first network configuration information corresponding to the target operating system, if a first input to the target operating system is received, updating the first system configuration information corresponding to the target operating system to second system configuration information in response to the first input, the electronic device runs multiple operating systems, and the target operating system is any one of the multiple operating systems;
[0086] A second updating module 402, configured to parse the second system configuration information through the target operating system to obtain second network configuration information, and update the first network configuration information to the second network configuration information;
[0087] The first communication module 403 is used to establish a communication connection with the second network based on the second network configuration information, disconnect the communication connection with the first network, and retain the first network configuration information.
[0088] In the above embodiment of the present application, the electronic device runs multiple operating systems. When the electronic device establishes a communication connection with the first network through the first network configuration information corresponding to the target operating system in the multiple operating systems, if a first input to the target operating system is received, the first system configuration information corresponding to the target operating system is updated to the second system configuration information in response to the first input. Thus, the system configuration information is dynamic configuration information, which can be flexibly modified and updated, thereby improving development efficiency. In addition, the second system configuration information is parsed by the target operating system to obtain the second network configuration information, and the first network configuration information is updated to the second network configuration information. A communication connection with the second network is established based on the second network configuration information, and the communication connection with the first network is disconnected, and the first network configuration information is retained, that is, the network configuration information of the previous network can be retained when the network is switched, which can not only improve the network switching efficiency, but also avoid network interruption.
[0089] Optionally, the device further comprises:
[0090] A first acquisition module, configured to acquire first system configuration information corresponding to the target operating system when the target operating system is in a startup state;
[0091] A parsing module, configured to parse the first system configuration information through the target operating system to obtain first network configuration information corresponding to the target operating system;
[0092] The second communication module is used to establish a communication connection with the first network based on the first network configuration information.
[0093] Optionally, the device further comprises:
[0094] The processing module is used to control the target operating system to restart and initialize the first system configuration information of the target operating system when the target operating system runs abnormally.
[0095] Optionally, the first system configuration information or the second system configuration information includes: at least one of an Internet Protocol IP address, a subnet mask, and a Media Access Control MAC address.
[0096] Optionally, the device further comprises:
[0097] A second acquisition module, used to acquire the operation information corresponding to each operating system in the multiple operating systems and the second network configuration information;
[0098] The synchronization module is used to synchronize the corresponding operation information of each operating system and the second network configuration information to other operating systems through the media system in the multiple operating systems.
[0099] In summary, in the above embodiments of the present application, the electronic device runs multiple operating systems and shares information of other operating systems through the media system, which can improve the business interaction of multiple operating systems, effectively maintain and ensure the stability of communication of multiple operating system services, enhance the user experience, and improve the convenience of user operation. In addition, the system configuration information is dynamic configuration information, which can be flexibly modified and updated, thereby improving development efficiency. In addition, the network configuration information of the previous network can be retained when the network is switched, so as to improve the network switching efficiency when the network is frequently switched, and avoid network interruptions. In addition, core services are configured in each operating system, and related businesses are integrated into the core services. It is not platform-dependent, has good portability, is convenient for rapid development of applications, has no related compatibility issues, and can be quickly built for different platforms to reduce workload.
[0100] It should be noted here that the multi-operating system communication device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned multi-operating system communication method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0101] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0102] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0103] like Figure 5 As shown, an embodiment of the present application further provides an electronic device, including a memory 520, a transceiver 510, and a processor 500:
[0104] A memory 520, for storing computer programs;
[0105] A transceiver 510, configured to transmit and receive data under the control of the processor;
[0106] The processor 500 is used to read the computer program in the memory and execute the steps of the communication method for multiple operating systems as described in any of the above embodiments.
[0107] Among them, Figure 5 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 500 and memory represented by memory 520. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 510 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium, which transmission medium may include a wireless channel, a wired channel, an optical cable, and the like. The processor 500 is responsible for managing the bus architecture and general processing, and the memory 520 may store data used by the processor 500 when performing operations.
[0108] The processor 500 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD). The processor may also adopt a multi-core architecture.
[0109] The processor calls the computer program stored in the memory to execute any multi-operating system communication method provided in the embodiment of the present application according to the obtained executable instructions. The processor and the memory can also be arranged physically separately.
[0110] It should be noted here that the above-mentioned electronic device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned multi-operating system communication method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0111] An embodiment of the present application further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the above-mentioned communication method for multiple operating systems.
[0112] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.
[0113] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0114] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer executable instructions. These computer executable instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0115] These processor executable instructions may also be stored in a processor readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the processor readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0116] These processor-executable instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0117] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A communication method for multiple operating systems, applied to electronic equipment, characterized in that: The method comprises: In a case where the electronic device establishes a communication connection with the first network through the first network configuration information corresponding to the target operating system, if a first input to the target operating system is received, in response to the first input, the first system configuration information corresponding to the target operating system is updated to second system configuration information, the electronic device runs multiple operating systems, and the target operating system is any one of the multiple operating systems; Parsing the second system configuration information through the target operating system to obtain second network configuration information, and updating the first network configuration information to the second network configuration information; A communication connection with the second network is established based on the second network configuration information, and the communication connection with the first network is disconnected, and the first network configuration information is retained.
2. The method according to claim 1, characterized in that The method further comprises: When the target operating system is in a startup state, obtaining first system configuration information corresponding to the target operating system; Parsing the first system configuration information by the target operating system to obtain first network configuration information corresponding to the target operating system; A communication connection with the first network is established based on the first network configuration information.
3. The method according to claim 1, characterized in that The method further comprises: When the target operating system runs abnormally, the target operating system is controlled to restart, and the first system configuration information of the target operating system is initialized.
4. The method according to claim 1, characterized in that: The first system configuration information or the second system configuration information includes: at least one of an Internet Protocol IP address, a subnet mask, and a Media Access Control MAC address.
5. The method according to claim 1, characterized in that The method further comprises: Acquire operation information corresponding to each operating system in the multiple operating systems and the second network configuration information; The corresponding operation information of each operating system and the second network configuration information are synchronized to other operating systems through the media system in the multiple operating systems.
6. A communication device for multiple operating systems, applied to electronic equipment, characterized in that: The device comprises: a first updating module, configured to update the first system configuration information corresponding to the target operating system to second system configuration information in response to a first input received when the electronic device establishes a communication connection with the first network through the first network configuration information corresponding to the target operating system, wherein the electronic device runs multiple operating systems and the target operating system is any one of the multiple operating systems; A second updating module, configured to parse the second system configuration information through the target operating system to obtain second network configuration information, and update the first network configuration information to the second network configuration information; The first communication module is used to establish a communication connection with the second network based on the second network configuration information, disconnect the communication connection with the first network, and retain the first network configuration information.
7. The device according to claim 6, characterized in that The device also includes: A first acquisition module, configured to acquire first system configuration information corresponding to the target operating system when the target operating system is in a startup state; A parsing module, configured to parse the first system configuration information through the target operating system to obtain first network configuration information corresponding to the target operating system; The second communication module is used to establish a communication connection with the first network based on the first network configuration information.
8. The device according to claim 6, characterized in that The device also includes: The processing module is used to control the target operating system to restart and initialize the first system configuration information of the target operating system when the target operating system runs abnormally.
9. The device according to claim 6, characterized in that The first system configuration information or the second system configuration information includes: at least one of an Internet Protocol IP address, a subnet mask, and a Media Access Control MAC address.
10. The device according to claim 6, characterized in that The device also includes: A second acquisition module, used to acquire the operation information corresponding to each operating system in the multiple operating systems and the second network configuration information; The synchronization module is used to synchronize the corresponding operation information of each operating system and the second network configuration information to other operating systems through the media system in the multiple operating systems.
11. An electronic device, characterized in that: Including memory, transceiver, processor: Memory for storing computer programs; a transceiver, for transmitting and receiving data under the control of the processor; A processor, configured to read the computer program in the memory and execute the communication method for multiple operating systems as described in any one of claims 1 to 5.
12. A processor-readable storage medium, characterized in that: The processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the communication method for multiple operating systems according to any one of claims 1 to 5.