From d138b9078219ea91d2bbe48deee4bf3f66512d14 Mon Sep 17 00:00:00 2001 From: Kenny <148837522+KennyPlus@users.noreply.github.com> Date: Mon, 16 Sep 2024 16:54:18 +0800 Subject: [PATCH] Update fpv-openipc-aio-mario.md Add Auto set CDC ethernet --- en/fpv-openipc-aio-mario.md | 30 ++---------------------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/en/fpv-openipc-aio-mario.md b/en/fpv-openipc-aio-mario.md index 4f71d30..a010f82 100644 --- a/en/fpv-openipc-aio-mario.md +++ b/en/fpv-openipc-aio-mario.md @@ -68,36 +68,10 @@ If there are unknown USB devices in the computer, the following drivers need to (https://github.com/user-attachments/files/16829005/corechip-sr9900-usb20-to-fast-ethernet-adapter-1750095.zip) in windows: -Save attached Auto_set_Mario_CDX.bat and run as administrator. -[Uploading Auto_Set_Mario_CDC.bat@echo off -setlocal +Save attached and unzip file ( Auto_set_Mario_CDX.bat )and run as administrator. -echo Detecting Ethernet adapter with description containing "Searching OpenIPC Mario AIO device CDC net adapter"... +[Auto_Set_Mario_CDC.zip](https://github.com/user-attachments/files/17010487/Auto_Set_Mario_CDC.zip) -:: Query network adapters and find the one with "Corechip SR9900" in the description -for /f "tokens=2 delims==" %%A in ('wmic nic where "Description like '%%Corechip SR9900%%' and NetConnectionID is not null" get NetConnectionID /value 2^>nul') do ( - set "EthernetName=%%A" -) - -:: Check if the EthernetName variable was set -if defined EthernetName ( - echo Ethernet adapter found: "%EthernetName%" - echo Configuring IPv4 address... - - :: Set the static IPv4 address and subnet mask - netsh interface ip set address name="%EthernetName%" static 192.168.1.11 255.255.255.0 - if %errorlevel% equ 0 ( - echo Successfully set the IP address to 192.168.1.11 and subnet mask to 255.255.255.0 - ) else ( - echo Failed to set the IP address. Please check permissions or install Driver for it. - ) -) else ( - echo No Ethernet adapter with "Mario AIO device" found. -) - -endlocal -pause -…]() or setting manually as follows: