Update fpv-openipc-aio-mario.md

Add Auto set CDC ethernet
pull/410/head
Kenny 2024-09-16 16:54:18 +08:00 committed by GitHub
parent 11e0341fe4
commit d138b90782
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 28 deletions

View File

@ -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: