Method and system for establishing internal and external local area networks by distinguishing double network cards for OPS computer
By detecting and marking the network card type on the OPS computer motherboard and automatically modifying the network card description name in the operating system, the chaos problem of dual network card OPS computers when forming internal and external LANs is solved, and the application layer is accurately identified and correctly networked.
Patent Information
- Application Number
- CN202411924054.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-04-18
AI Technical Summary
Traditional single network card OPS computers cannot meet the needs of complex scenarios such as smart classrooms and smart meetings, resulting in confusion and limitations in the formation of internal and external LANs, and it is difficult for the application layer to accurately identify the usage of network cards.
By initializing the PCIe device on the motherboard of the OPS computer, check whether there are two network cards with the same Vendor ID, and write the corresponding dual network card flag or single network card mark in the SMBIOS information. After entering the operating system, the SMBIOS query software is automatically run to find and modify the description name of the network card to distinguish between internal and external network cards.
It realizes accurate identification and distinction of dual network card OPS computers, ensuring that the application layer can correctly form internal and external LAN environments to meet the needs of complex scenarios such as multi-screen interaction.
Smart Images

Figure CN119848949A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of OPS computers, and more specifically to a method and system for distinguishing internal and external local area networks formed by dual network cards in OPS computers. Background Art
[0002] The OPS host is a small, portable computer with a pre-installed operating system that can be directly plugged into a monitor, keyboard, and mouse. It is usually used in business meetings, classroom teaching, and public entertainment venues. However, with the changing needs of smart classrooms and smart meetings, the traditional single-network-card OPS computer cannot meet the needs of end users. Therefore, dual-network-card OPS computers have emerged to build internal and external LANs to meet the needs of complex scenarios such as multi-screen interaction for end users.
[0003] At present, when the OPS computer motherboard is equipped with two network cards of the same specification, it will cause confusion between the internal and external LANs, and the application layer cannot determine which network card to use as the internal network. This also leads to limitations in the OPS computer dual network card solution to build internal and external networks. Therefore, the industry urgently needs a method to solve this pain point. Summary of the invention
[0004] The technical problem to be solved by the present invention is that, in view of the above-mentioned defects of the prior art, a method for distinguishing between internal and external LANs formed by dual network cards for OPS computers is provided, and a system for distinguishing between internal and external LANs formed by dual network cards for OPS computers is provided.
[0005] The technical solution adopted by the present invention to solve its technical problem is:
[0006] A method for distinguishing between internal and external LANs formed by dual network cards for OPS computers is constructed, which includes the following steps:
[0007] When the computer is powered on, the motherboard PCIe device is initialized and the presence of two network cards with the same Vendor ID is detected. If so, the corresponding dual network card flag is written into the SMBIOS information; otherwise, the single network card flag is written into the SMBIOS information.
[0008] After entering the OS, the SMBIOS query software will automatically run. If the corresponding position of the SMBIOS is found to have a dual network card mark written in it, the corresponding network card will be found and the description name of the network card will be modified through the registry. If the corresponding position of the SMBIOS is found to have a single network card mark written in it, no action will be taken.
[0009] Distinguish the internal and external network cards according to the modified network card description name, and build the internal and external LAN environments accordingly.
[0010] The method for distinguishing internal and external LANs formed by dual network cards for OPS computers of the present invention, wherein when the corresponding dual network card flag is written into the SMBIOS information, the PCIe Bus, Device, and Function numbers corresponding to the network cards are also recorded into the SMBIOS information.
[0011] The method for distinguishing the internal and external LANs formed by dual network cards for OPS computers of the present invention, wherein the query finds that the corresponding bit of SMBIOS has a dual network card mark written in it, and searches for the corresponding network card using:
[0012] It is found that the corresponding bit of SMBIOS has a dual network card mark written in it, and the corresponding network card is found through the reported PCIe Bus, Device, and Function numbers.
[0013] A system for distinguishing between dual network cards to form internal and external LANs for OPS computers, wherein the system includes a BIOS unit and an application layer processing unit;
[0014] The BIOS unit is used to initialize the motherboard PCIe device when the computer is turned on and detect whether there are two network cards with the same Vendor ID. If so, the corresponding dual network card flag is written into the SMBIOS information; otherwise, the single network card flag is written into the SMBIOS information;
[0015] The application layer processing unit is used to automatically run the SMBIOS query software after entering the OS. If it is found that the corresponding position of the SMBIOS has a dual network card mark written in it, the corresponding network card is searched and the description name of the network card is modified through the registry; if it is found that the corresponding position of the SMBIOS has a single network card mark written in it, no action is taken; the internal and external network cards are distinguished according to the modified description name of the network card, and the internal and external LAN environments are established accordingly.
[0016] The present invention is used for distinguishing the internal and external LAN systems formed by dual network cards in OPS computers, wherein when the corresponding dual network card flags are written into the SMBIOS information, the PCIe Bus, Device, and Function numbers corresponding to the network cards are also recorded into the SMBIOS information.
[0017] The present invention is used for distinguishing the internal and external LAN systems of dual network cards for OPS computers, wherein the corresponding position of SMBIOS is found to have a dual network card mark written therein, and the corresponding network card is searched using:
[0018] It is found that the corresponding bit of SMBIOS has a dual network card mark written in it, and the corresponding network card is found through the reported PCIe Bus, Device, and Function numbers.
[0019] The beneficial effects of the present invention are as follows: when starting up, the mainboard PCIe device is initialized and whether there are two network cards with the same VendorID is detected. If so, the corresponding dual network card flag is written in the SMBIOS information, otherwise the single network card flag is written in the SMBIOS information; after entering the OS, the SMBIOS query software is automatically run, and if it is found that the corresponding position of the SMBIOS has a dual network card flag written in it, the corresponding network card is searched, and the description name of the network card is modified through the registry; if it is found that the corresponding position of the SMBIOS has a single network card flag written in it, no action is taken; the internal and external network cards are distinguished according to the modified description name of the network card, and the internal and external LAN environments are established accordingly; the method and technique of the present application can help the application layer accurately identify which of the two network cards with the same specifications is used to establish the internal network and which is used to establish the external network for the OPS host. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the present invention will be further described below in conjunction with the accompanying drawings and embodiments. The drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work:
[0021] Figure 1 It is a flow chart of a method for distinguishing between dual network cards and forming internal and external LANs for OPS computers according to a preferred embodiment of the present invention;
[0022] Figure 2 It is a topological diagram of a computer motherboard for distinguishing internal and external LAN systems formed by dual network cards for OPS computers in a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the following will be described clearly and completely in combination with the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are partial embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the protection scope of the present invention.
[0024] The preferred embodiment of the present invention is used for distinguishing the method of forming internal and external LANs with dual network cards in OPS computers, such as Figure 1 As shown, the following steps are included:
[0025] S01: When the computer is turned on, the motherboard PCIe device is initialized and the presence of two network cards with the same Vendor ID is detected. If so, the corresponding dual network card flag is written into the SMBIOS information; otherwise, the single network card flag is written into the SMBIOS information.
[0026] S02: After entering the OS, the SMBIOS query software is automatically run. If the corresponding position of the SMBIOS is found to have a dual network card mark written in it, the corresponding network card is searched and the description name of the network card is modified through the registry. If the corresponding position of the SMBIOS is found to have a single network card mark written in it, no action is taken.
[0027] S03: Distinguish the internal and external network cards according to the modified network card description name, and establish the internal and external LAN environment accordingly (which can be used by multi-screen interactive software);
[0028] By applying the method of this application, for the OPS host, it can help the application layer accurately identify which of two network cards with the same specifications is used to build an intranet (the intranet can only be the network card connecting the OPS 80Pin and the large-screen TV board) and which is used to build an external network.
[0029] Preferably, when the corresponding dual network card flag is written into the SMBIOS information, the PCIe Bus, Device, and Function numbers corresponding to the network card are also recorded in the SMBIOS information; when it is found that the dual network card mark is written in the corresponding position of the SMBIOS, the corresponding network card is searched by: when it is found that the dual network card mark is written in the corresponding position of the SMBIOS, the corresponding network card is searched by the reported PCIe Bus, Device, and Function numbers; the PCIe Bus, Device, and Function numbers are identification codes of the network card, and the network card can be accurately searched in this way.
[0030] A system for distinguishing between dual network cards and forming internal and external LANs for OPS computers, such as Figure 2 As shown, the system includes a BIOS unit and an application layer processing unit, that is, the solution involves the bottom BIOS and the application layer software;
[0031] The BIOS unit is used to initialize the motherboard PCIe device when the computer is turned on and detect whether there are two network cards with the same Vendor ID. If so, the corresponding dual network card flag is written into the SMBIOS information; otherwise, the single network card flag is written into the SMBIOS information.
[0032] The application layer processing unit is used to automatically run the SMBIOS query software after entering the OS. If the corresponding position of the SMBIOS is found to have a dual network card mark written in it, the corresponding network card is searched and the description name of the network card is modified through the registry. If the corresponding position of the SMBIOS is found to have a single network card mark written in it, no action is taken. The internal and external network cards are distinguished according to the modified description name of the network card, and the internal and external LAN environments are established accordingly.
[0033] The system of the present application can help the application layer accurately identify which of two network cards of the same specification is used to form an intranet and which is used to form an extranet for an OPS host.
[0034] Among them, when the corresponding dual network card flag is written into the SMBIOS information, the PCIe Bus, Device, and Function numbers corresponding to the network card are also recorded in the SMBIOS information; when it is found that the corresponding position of the SMBIOS has a dual network card mark written, the corresponding network card is searched by: when it is found that the corresponding position of the SMBIOS has a dual network card mark written, the corresponding network card is searched by the reported PCIe Bus, Device, and Function numbers.
[0035] It should be understood that those skilled in the art can make improvements or changes based on the above description, and all these improvements and changes should fall within the scope of protection of the appended claims of the present invention.
Claims
1. A method for distinguishing internal and external LANs formed by dual network cards for OPS computers, characterized in that: The following steps are involved: When the computer is powered on, the motherboard PCIe device is initialized and the presence of two network cards with the same Vendor ID is detected. If so, the corresponding dual network card flag is written into the SMBIOS information; otherwise, the single network card flag is written into the SMBIOS information. After entering the OS, the SMBIOS query software is automatically run. If the corresponding bit of the SMBIOS is found to have dual network card marks written in it, the corresponding network card is searched and the description name of the network card is modified through the registry. If the query finds that the corresponding bit of SMBIOS has a single network card mark written in it, no action will be taken; Distinguish the internal and external network cards according to the modified network card description name, and build the internal and external LAN environments accordingly.
2. The method for distinguishing between internal and external LANs formed by dual network cards for OPS computers according to claim 1, characterized in that: When the corresponding dual network card flag is written into the SMBIOS information, the PCIe Bus, Device, and Function numbers corresponding to the network card are also recorded in the SMBIOS information.
3. The method for distinguishing between internal and external LANs formed by dual network cards for OPS computers according to claim 2, characterized in that: The query found that the corresponding bit of SMBIOS has a dual network card mark written in it, and the corresponding network card is found by: It is found that the corresponding bit of SMBIOS has a dual network card mark written in it, and the corresponding network card is found through the reported PCIe Bus, Device, and Function numbers.
4. A system for distinguishing internal and external LANs formed by dual network cards for OPS computers, characterized in that: The system includes a BIOS unit and an application layer processing unit; The BIOS unit is used to initialize the motherboard PCIe device when the computer is turned on and detect whether there are two network cards with the same Vendor ID. If so, the corresponding dual network card flag is written into the SMBIOS information; otherwise, the single network card flag is written into the SMBIOS information; The application layer processing unit is used to automatically run the SMBIOS query software after entering the OS, and if it is found that the corresponding bit of the SMBIOS has a dual network card mark written in it, find the corresponding network card and modify the description name of the network card through the registry; If the query finds that the corresponding position of SMBIOS has a single network card mark written in it, no action will be taken; the internal and external network cards will be distinguished according to the modified network card description name, and the internal and external LAN environments will be established accordingly.
5. The system for distinguishing between dual network cards and forming internal and external LANs for OPS computers according to claim 4 is characterized in that: When the corresponding dual network card flag is written into the SMBIOS information, the PCIe Bus, Device, and Function numbers corresponding to the network card are also recorded in the SMBIOS information.
6. The system for distinguishing between dual network cards and forming internal and external LANs for OPS computers according to claim 5, characterized in that: The query found that the corresponding bit of SMBIOS has a dual network card mark written in it, and the corresponding network card is found by: It is found that the corresponding bit of SMBIOS has a dual network card mark written in it, and the corresponding network card is found through the reported PCIe Bus, Device, and Function numbers.