20240921在友善之臂的NanoPC-T6开发板上使用Rockchip原厂的Android12适配宸芯的数传模块CX6602N

127|console:/ # uname -a
console:/ # ifconfig
console:/ # ifconfig -a
console:/ # ifconfig -a
130|console:/ # ifconfig usb0 192.168.42.130
console:/ #
console:/ # ifconfig
console:/ # iperf3 -s &
iperf3 -c 192.168.42.130 -i 1 -t 30

20240921在友善之臂的NanoPC-T6开发板上使用Rockchip原厂的Android12适配宸芯的数传模块CX6602N

2024/9/21 20:09

1、Rockchip原厂的Android12会默认1分钟/60秒休眠。因此需要使用鼠标来配置永不休眠!
USB20_HOST_PWREN_H
GPIO1_A4_d

su
echo 36 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio36/direction
echo 1 > /sys/class/gpio/gpio36/value

3588a12repo20240408.tar.gz

127|console:/ #
127|console:/ # uname -a
Linux localhost 5.10.160 #1 SMP PREEMPT Sat Sep 21 12:40:52 CST 2024 aarch64
console:/ #

console:/ #

2、ll

Y:\3588a12\external\mksh\mkshrc

Copyright (c) 2010, 2012, 2013, 2014

Thorsten Glaser <tg@mirbsd.org>

This file is provided under the same terms as mksh.

#-

Minimal /system/etc/mkshrc for Android

Support: https://launchpad.net/mksh

set +o nohup

if (( USER_ID )); then PS1='$'; else PS1='#'; fi

PS4='[EPOCHREALTIME\] '; PS1='{|

local e=$?

(( e )) && REPLY+="$e|"

return $e

}HOSTNAME:{PWD:-?} '"$PS1 "

#add-start
alias l='ls'
alias la='l -a'
alias ll='l -l'
alias lo='l -a -l'
#alias find='busybox find'
#add-end

3、右键返回

Y:\3588a12\frameworks\native\services\inputflinger\reader\mapper\accumulator\CursorButtonAccumulator.cpp
if (mBtnRight) {
//char targetProduct[PROPERTY_VALUE_MAX] = {0};
//property_get("ro.target.product", targetProduct, "");
//if (strcmp(targetProduct, "box") == 0 || strcmp(targetProduct, "atv") == 0 || strcmp(targetProduct, "car") == 0 || strcmp(targetProduct, "vehicle") == 0) {
result |= AMOTION_EVENT_BUTTON_BACK;
//} else {
// result |= AMOTION_EVENT_BUTTON_SECONDARY;
//}
}

4、【Android12默认打开USB转以太网卡了!】

Y:\3588a12\kernel-5.10\arch\arm64\configs\rockchip_defconfig

CONFIG_PPPOE=y

CONFIG_PPTP=y

CONFIG_PPPOL2TP=y

CONFIG_PPP_ASYNC=y

CONFIG_PPP_SYNC_TTY=y

CONFIG_USB_CATC=y

CONFIG_USB_KAWETH=y

CONFIG_USB_PEGASUS=y

CONFIG_USB_RTL8150=y

CONFIG_USB_RTL8152=y
CONFIG_USB_USBNET=y
CONFIG_USB_NET_CDC_EEM=y
CONFIG_USB_NET_CDC_MBIM=y
CONFIG_USB_NET_DM9601=y
CONFIG_USB_NET_SMSC75XX=y
CONFIG_USB_NET_SMSC95XX=y
CONFIG_USB_NET_GL620A=y
CONFIG_USB_NET_PLUSB=y
CONFIG_USB_NET_MCS7830=y
CONFIG_USB_NET_RNDIS_HOST=y

CONFIG_USB_ALI_M5632=y

CONFIG_USB_AN2720=y

CONFIG_USB_EPSON2888=y

CONFIG_USB_KC2190=y

CONFIG_USB_NET_CX82310_ETH=y

CONFIG_USB_NET_KALMIA=y

CONFIG_USB_NET_QMI_WWAN=y

CONFIG_USB_HSO=y

CONFIG_USB_NET_INT51X1=y

CONFIG_USB_IPHETH=y

CONFIG_USB_SIERRA_NET=y

CONFIG_WLAN_VENDOR_ADMTEK is not set

CONFIG_WLAN_VENDOR_ATH is not set

CONFIG_WLAN_VENDOR_ATMEL is not set

5、打开这里生成4个设备节点:/dev/ttyUSB*

Y:\3588a12\kernel-5.10\drivers\usb\serial\generic.c

static __u16 vendor = 0x05f9;

static __u16 product = 0xffff;

修改为:

static __u16 vendor = 0x18d1;

static __u16 product = 0x181f;

6、整体编译并打包:

rootroot@rootroot-desktop:~/3588a12$
rootroot@rootroot-desktop:~/3588a12$ source build/envsetup.sh
rootroot@rootroot-desktop:~/3588a12$
rootroot@rootroot-desktop:~/3588a12$ lunch

You're building on Linux

Lunch menu... pick a combo:

  1. aosp_arm-eng

  2. aosp_arm64-eng

  3. aosp_blueline-userdebug

  4. aosp_blueline_car-userdebug

  5. aosp_bonito-userdebug

  6. aosp_bonito_car-userdebug

  7. aosp_bramble_car-userdebug

  8. aosp_cf_arm64_auto-userdebug

  9. aosp_cf_arm64_phone-userdebug

  10. aosp_cf_x86_64_foldable-userdebug

  11. aosp_cf_x86_64_pc-userdebug

  12. aosp_cf_x86_64_phone-userdebug

  13. aosp_cf_x86_64_tv-userdebug

  14. aosp_cf_x86_auto-userdebug

  15. aosp_cf_x86_phone-userdebug

  16. aosp_cf_x86_tv-userdebug

  17. aosp_coral_car-userdebug

  18. aosp_crosshatch-userdebug

  19. aosp_crosshatch_car-userdebug

  20. aosp_crosshatch_vf-userdebug

  21. aosp_flame_car-userdebug

  22. aosp_oriole-userdebug

  23. aosp_oriole_car-userdebug

  24. aosp_raven-userdebug

  25. aosp_raven_car-userdebug

  26. aosp_redfin_car-userdebug

  27. aosp_sargo-userdebug

  28. aosp_sargo_car-userdebug

  29. aosp_slider-userdebug

  30. aosp_sunfish_car-userdebug

  31. aosp_whitefin-userdebug

  32. aosp_x86-eng

  33. aosp_x86_64-eng

  34. arm_krait-eng

  35. arm_v7_v8-eng

  36. armv8-eng

  37. armv8_cortex_a55-eng

  38. armv8_kryo385-eng

  39. beagle_x15-userdebug

  40. beagle_x15_auto-userdebug

  41. fuchsia_arm64-eng

  42. fuchsia_x86_64-eng

  43. hikey-userdebug

  44. hikey64_only-userdebug

  45. hikey960-userdebug

  46. hikey960_tv-userdebug

  47. hikey_tv-userdebug

  48. qemu_trusty_arm64-userdebug

  49. rk3588_box-user

  50. rk3588_box-userdebug

  51. rk3588_s-user

  52. rk3588_s-userdebug

  53. rk3588_xr-user

  54. rk3588_xr-userdebug

  55. rk3588m_car-user

  56. rk3588m_car-userdebug

  57. rk3588m_s-user

  58. rk3588m_s-userdebug

  59. rk3588s_s-user

  60. rk3588s_s-userdebug

  61. sdk_car_arm-userdebug

  62. sdk_car_arm64-userdebug

  63. sdk_car_portrait_x86_64-userdebug

  64. sdk_car_x86-userdebug

  65. sdk_car_x86_64-userdebug

  66. silvermont-eng

  67. uml-userdebug

  68. yukawa-userdebug

  69. yukawa_sei510-userdebug

Which would you like? [aosp_arm-eng] 52

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=12

TARGET_PRODUCT=rk3588_s

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_ARCH=arm64

TARGET_ARCH_VARIANT=armv8-a

TARGET_CPU_VARIANT=generic

TARGET_2ND_ARCH=arm

TARGET_2ND_ARCH_VARIANT=armv8-a

TARGET_2ND_CPU_VARIANT=generic

HOST_ARCH=x86_64

HOST_2ND_ARCH=x86

HOST_OS=linux

HOST_OS_EXTRA=Linux-5.15.0-122-generic-x86_64-Ubuntu-20.04.6-LTS

HOST_CROSS_OS=windows

HOST_CROSS_ARCH=x86

HOST_CROSS_2ND_ARCH=x86_64

HOST_BUILD_TYPE=release

BUILD_ID=SQ3A.220705.003.A1

OUT_DIR=out

============================================

rootroot@rootroot-desktop:~/3588a12$
rootroot@rootroot-desktop:~/3588a12$ ./build.sh -UACKu

127|console:/ # uname -a
console:/ # ifconfig
console:/ # ifconfig -a
console:/ # ifconfig -a
130|console:/ # ifconfig usb0 192.168.42.130
console:/ #
console:/ # ifconfig
console:/ # iperf3 -s &
iperf3 -c 192.168.42.130 -i 1 -t 30

7、刷机之后,你会发现只有一个以太网卡RJ45的信息,当然不是数传模块的!

console:/dev #

console:/dev # cd /

console:/ #

console:/ # uanme -a

/system/bin/sh: uanme: inaccessible or not found
127|console:/ #
127|console:/ # uname -a
Linux localhost 5.10.160 #1 SMP PREEMPT Sat Sep 21 12:40:52 CST 2024 aarch64
console:/ #

console:/ # [ 2346.044846][ T434] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

[ 2406.044766][ T434] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

[ 2466.044739][ T434] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

[ 2526.044753][ T434] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

[ 2586.044734][ T434] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

[ 2646.044760][ T434] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

[ 2706.044721][ T434] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

[ 2766.044615][ T434] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

[ 2826.044743][ T434] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

[ 2886.044772][ T434] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

[ 2946.044728][ T434] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

console:/ #

console:/ #

console:/ #

console:/ # ifconfig

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope: Host

UP LOOPBACK RUNNING MTU:65536 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:0

dummy0 Link encap:Ethernet HWaddr 1a:12:9e:cf:2d:cd

inet6 addr: fe80::1812:9eff:fecf:2dcd/64 Scope: Link

UP BROADCAST RUNNING NOARP MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:10 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:700

console:/ #

console:/ # ifconfig -a

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope: Host

UP LOOPBACK RUNNING MTU:65536 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:0

dummy0 Link encap:Ethernet HWaddr 1a:12:9e:cf:2d:cd

inet6 addr: fe80::1812:9eff:fecf:2dcd/64 Scope: Link

UP BROADCAST RUNNING NOARP MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:10 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:700

eth0 Link encap:Ethernet HWaddr 8e:ba:83:ce:09:59 Driver rk_gmac-dwmac

BROADCAST MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:0

Interrupt:88

ip_vti0 Link encap:UNSPEC

NOARP MTU:1480 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:0

ip6_vti0 Link encap:UNSPEC

NOARP MTU:1364 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:0

sit0 Link encap:IPv6-in-IPv4

NOARP MTU:1480 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:0

ip6tnl0 Link encap:UNSPEC

NOARP MTU:1452 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:0

console:/ #

console:/ # [ 3006.044704][ T434] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

console:/ #
console:/ #
console:/ # [ 3023.011134][ T2573] usb 5-1: new high-speed USB device number 3 using xhci-hcd
[ 3023.162306][ T2573] usb 5-1: New USB device found, idVendor=18d1, idProduct=181f, bcdDevice=ff.ff
[ 3023.162416][ T2573] usb 5-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[ 3023.162444][ T2573] usb 5-1: Product: Android
[ 3023.162468][ T2573] usb 5-1: Manufacturer: Android
[ 3023.162492][ T2573] usb 5-1: SerialNumber: 69KFTC071031
[ 3023.237051][ T2573] rndis_host 5-1:1.0 usb0: register 'rndis_host' at usb-xhci-hcd.5.auto-1, RNDIS device, b6:78:b2:60:68:1a
[ 3023.245308][ T2573] usbserial_generic 5-1:1.2: The "generic" usb-serial driver is only for testing and one-off prototypes.
[ 3023.245374][ T2573] usbserial_generic 5-1:1.2: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
[ 3023.245395][ T2573] usbserial_generic 5-1:1.2: generic converter detected
[ 3023.246217][ T2573] usb 5-1: generic converter now attached to ttyUSB0
[ 3023.247131][ T2573] usbserial_generic 5-1:1.3: The "generic" usb-serial driver is only for testing and one-off prototypes.
[ 3023.247148][ T2573] usbserial_generic 5-1:1.3: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
[ 3023.247162][ T2573] usbserial_generic 5-1:1.3: generic converter detected
[ 3023.247719][ T2573] usb 5-1: generic converter now attached to ttyUSB1
[ 3023.248227][ T2573] usbserial_generic 5-1:1.4: The "generic" usb-serial driver is only for testing and one-off prototypes.
[ 3023.248244][ T2573] usbserial_generic 5-1:1.4: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
[ 3023.248258][ T2573] usbserial_generic 5-1:1.4: generic converter detected
[ 3023.254380][ T2573] usb 5-1: generic converter now attached to ttyUSB2
[ 3023.255034][ T2573] usbserial_generic 5-1:1.5: The "generic" usb-serial driver is only for testing and one-off prototypes.
[ 3023.255051][ T2573] usbserial_generic 5-1:1.5: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
[ 3023.255065][ T2573] usbserial_generic 5-1:1.5: generic converter detected
[ 3023.255610][ T2573] usb 5-1: generic converter now attached to ttyUSB3
[ 3023.256308][ T2573] usbserial_generic 5-1:1.6: The "generic" usb-serial driver is only for testing and one-off prototypes.
[ 3023.256324][ T2573] usbserial_generic 5-1:1.6: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
[ 3023.256338][ T2573] usbserial_generic 5-1:1.6: generic converter detected
[ 3023.256882][ T2573] usb 5-1: generic converter now attached to ttyUSB4

console:/ #
console:/ # ifconfig -a

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope: Host

UP LOOPBACK RUNNING MTU:65536 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:0

dummy0 Link encap:Ethernet HWaddr 1a:12:9e:cf:2d:cd

inet6 addr: fe80::1812:9eff:fecf:2dcd/64 Scope: Link

UP BROADCAST RUNNING NOARP MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:10 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:700

eth0 Link encap:Ethernet HWaddr 8e:ba:83:ce:09:59 Driver rk_gmac-dwmac

BROADCAST MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:0

Interrupt:88

ip_vti0 Link encap:UNSPEC

NOARP MTU:1480 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:0

ip6_vti0 Link encap:UNSPEC

NOARP MTU:1364 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:0

sit0 Link encap:IPv6-in-IPv4

NOARP MTU:1480 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:0

ip6tnl0 Link encap:UNSPEC

NOARP MTU:1452 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:0

usb0 Link encap:Ethernet HWaddr b6:78:b2:60:68:1a Driver rndis_host
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 TX bytes:0

console:/ # [ 3066.044744][ T434] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

[ 3126.044841][ T434] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

console:/ # iperf3

acct/ etc/ proc/

apex/ init product/

bin/ init.environ.rc sdcard/

bugreports/ linkerconfig/ second_stage_resources/

cache/ lost+found/ storage/

config/ metadata/ sys/

d/ mnt/ system/

data/ odm/ system_ext/

data_mirror/ odm_dlkm/ vendor/

debug_ramdisk/ oem/ vendor_dlkm/

dev/ postinstall/

console:/ # iperf3

iperf3: parameter error - must either be a client (-c) or server (-s)

Usage: iperf3 [-s|-c host] [options]

iperf3 [-h|--help] [-v|--version]

Server or Client:

-p, --port # server port to listen on/connect to

-f, --format [kmgtKMGT] format to report: Kbits, Mbits, Gbits, Tbits

-i, --interval # seconds between periodic throughput reports

-F, --file name xmit/recv the specified file

-A, --affinity n/n,m set CPU affinity

-B, --bind <host> bind to the interface associated with the address <host>

-V, --verbose more detailed output

-J, --json output in JSON format

--logfile f send output to a log file

--forceflush force flushing output at every interval

--timestamps <format> emit a timestamp at the start of each output line

(using optional format string as per strftime(3))

-d, --debug emit debugging output

-v, --version show version information and quit

-h, --help show this message and quit

Server specific:

-s, --server run in server mode

-D, --daemon run the server as a daemon

-I, --pidfile file write PID file

-1, --one-off handle one client connection then exit

--server-bitrate-limit #[KMG][/#] server's total bit rate limit (default 0 = no limit)

(optional slash and number of secs interval for averaging

total data rate. Default is 5 seconds)

Client specific:

-c, --client <host> run in client mode, connecting to <host>

-u, --udp use UDP rather than TCP

--connect-timeout # timeout for control connection setup (ms)

-b, --bitrate #[KMG][/#] target bitrate in bits/sec (0 for unlimited)

(default 1 Mbit/sec for UDP, unlimited for TCP)

(optional slash and packet count for burst mode)

--pacing-timer #[KMG] set the timing for pacing, in microseconds (default 1000)

--fq-rate #[KMG] enable fair-queuing based socket pacing in

bits/sec (Linux only)

-t, --time # time in seconds to transmit for (default 10 secs)

-n, --bytes #[KMG] number of bytes to transmit (instead of -t)

-k, --blockcount #[KMG] number of blocks (packets) to transmit (instead of -t or -n)

-l, --length #[KMG] length of buffer to read or write

(default 128 KB for TCP, dynamic or 1460 for UDP)

--cport <port> bind to a specific client port (TCP and UDP, default: ephemeral port)

-P, --parallel # number of parallel client streams to run

-R, --reverse run in reverse mode (server sends, client receives)

--bidir run in bidirectional mode.

Client and server send and receive data.

-w, --window #[KMG] set window size / socket buffer size

-C, --congestion <algo> set TCP congestion control algorithm (Linux and FreeBSD only)

-M, --set-mss # set TCP/SCTP maximum segment size (MTU - 40 bytes)

-N, --no-delay set TCP/SCTP no delay, disabling Nagle's Algorithm

-4, --version4 only use IPv4

-6, --version6 only use IPv6

-S, --tos N set the IP type of service, 0-255.

The usual prefixes for octal and hex can be used,

i.e. 52, 064 and 0x34 all specify the same value.

--dscp N or --dscp val set the IP dscp value, either 0-63 or symbolic.

Numeric values can be specified in decimal,

octal and hex (see --tos above).

-L, --flowlabel N set the IPv6 flow label (only supported on Linux)

-Z, --zerocopy use a 'zero copy' method of sending data

-O, --omit N omit the first n seconds

-T, --title str prefix every output line with this string

--extra-data str data string to include in client and server JSON

--get-server-output get results from server

--udp-counters-64bit use 64-bit counters in UDP test packets

--repeating-payload use repeating pattern in payload, instead of

randomized payload (like in iperf2)

[KMG] indicates options that support a K/M/G suffix for kilo-, mega-, or giga-

iperf3 homepage at: https://software.es.net/iperf/

Report bugs to: https://github.com/esnet/iperf

1|console:/ #

1|console:/ #

1|console:/ # iperf3 -s^C

130|console:/ # [ 3186.044850][ T434] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au

130|console:/ # ifconfig usb0 192.168.42.130
console:/ #
console:/ # ifconfig

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope: Host

UP LOOPBACK RUNNING MTU:65536 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:0

dummy0 Link encap:Ethernet HWaddr 1a:12:9e:cf:2d:cd

inet6 addr: fe80::1812:9eff:fecf:2dcd/64 Scope: Link

UP BROADCAST RUNNING NOARP MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:10 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 TX bytes:700

usb0 Link encap:Ethernet HWaddr b6:78:b2:60:68:1a Driver rndis_host
inet addr:192.168.42.130 Bcast:192.168.42.255 Mask:255.255.255.0
inet6 addr: fe80::b478:b2ff:fe60:681a/64 Scope: Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:852 TX bytes:780

console:/ #
console:/ # iperf3 -s &
internal error: j_async: bad nzombie (49)
[1] 2584
console:/ # -----------------------------------------------------------
Server listening on 5201

iperf3 -c 192.168.42.130 -i 1 -t [ 3246.044637][ T434] healthd: battery l=50 v=3 t=2.6 h=2 st=3 c=-1600 fc=100 chg=au
30
Connecting to host 192.168.42.130, port 5201
Accepted connection from 192.168.42.130, port 34480
[ 5] local 192.168.42.130 port 34496 connected to 192.168.42.130 port 5201
[ 5] local 192.168.42.130 port 5201 connected to 192.168.42.130 port 34496
[ ID] Interval Transfer Bitrate
[ 5] 0.00-1.00 sec 3.19 GBytes 27.4 Gbits/sec
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 3.36 GBytes 28.9 Gbits/sec 0 2.25 MBytes
[ 5] 1.00-2.00 sec 3.10 GBytes 26.6 Gbits/sec
[ 5] 1.00-2.00 sec 3.05 GBytes 26.2 Gbits/sec 0 3.06 MBytes
[ 5] 2.00-3.00 sec 3.56 GBytes 30.6 Gbits/sec
[ 5] 2.00-3.00 sec 3.58 GBytes 30.8 Gbits/sec 0 3.06 MBytes
[ 5] 3.00-4.00 sec 3.41 GBytes 29.3 Gbits/sec
[ 5] 3.00-4.00 sec 3.42 GBytes 29.3 Gbits/sec 1 3.18 MBytes
[ 5] 4.00-5.00 sec 3.30 GBytes 28.4 Gbits/sec
[ 5] 4.00-5.00 sec 3.30 GBytes 28.4 Gbits/sec 0 3.18 MBytes

[ 5] 5.00-6.00 sec 3.51 GBytes 30.2 Gbits/sec

[ 5] 5.00-6.00 sec 3.51 GBytes 30.2 Gbits/sec 1 3.18 MBytes

[ 5] 6.00-7.00 sec 3.17 GBytes 27.2 Gbits/sec

[ 5] 6.00-7.00 sec 3.12 GBytes 26.8 Gbits/sec 2 3.18 MBytes

[ 5] 7.00-8.00 sec 3.21 GBytes 27.5 Gbits/sec

[ 5] 7.00-8.00 sec 3.24 GBytes 27.8 Gbits/sec 0 3.18 MBytes

[ 5] 8.00-9.00 sec 2.92 GBytes 25.1 Gbits/sec

[ 5] 8.00-9.00 sec 2.95 GBytes 25.4 Gbits/sec 0 3.18 MBytes

[ 5] 9.00-10.00 sec 2.81 GBytes 24.2 Gbits/sec

[ 5] 9.00-10.00 sec 2.79 GBytes 24.0 Gbits/sec 4 3.18 MBytes

[ 5] 10.00-11.00 sec 3.18 GBytes 27.3 Gbits/sec

[ 5] 10.00-11.00 sec 3.15 GBytes 27.0 Gbits/sec 0 3.18 MBytes

[ 5] 11.00-12.00 sec 3.29 GBytes 28.3 Gbits/sec

[ 5] 11.00-12.00 sec 3.33 GBytes 28.6 Gbits/sec 1 3.18 MBytes

[ 5] 12.00-13.00 sec 3.41 GBytes 29.3 Gbits/sec

[ 5] 12.00-13.00 sec 3.33 GBytes 28.6 Gbits/sec 0 3.18 MBytes

[ 5] 13.00-14.00 sec 3.35 GBytes 28.8 Gbits/sec

[ 5] 13.00-14.00 sec 3.44 GBytes 29.5 Gbits/sec 2 3.18 MBytes

[ 5] 14.00-15.00 sec 3.42 GBytes 29.4 Gbits/sec

[ 5] 14.00-15.00 sec 3.35 GBytes 28.7 Gbits/sec 0 3.18 MBytes

[ 5] 15.00-16.00 sec 3.33 GBytes 28.6 Gbits/sec

[ 5] 15.00-16.00 sec 3.42 GBytes 29.4 Gbits/sec 0 3.18 MBytes

[ 5] 16.00-17.00 sec 3.64 GBytes 31.3 Gbits/sec

[ 5] 16.00-17.00 sec 3.57 GBytes 30.7 Gbits/sec 0 3.18 MBytes

[ 5] 17.00-18.00 sec 2.60 GBytes 22.4 Gbits/sec

[ 5] 17.00-18.00 sec 2.65 GBytes 22.7 Gbits/sec 0 3.18 MBytes

[ 5] 18.00-19.00 sec 3.08 GBytes 26.5 Gbits/sec

[ 5] 18.00-19.00 sec 3.04 GBytes 26.1 Gbits/sec 0 3.18 MBytes

[ 5] 19.00-20.00 sec 3.53 GBytes 30.3 Gbits/sec

[ 5] 19.00-20.00 sec 3.56 GBytes 30.6 Gbits/sec 0 3.18 MBytes

[ 5] 20.00-21.00 sec 3.14 GBytes 27.0 Gbits/sec

[ 5] 20.00-21.00 sec 3.09 GBytes 26.6 Gbits/sec 0 3.18 MBytes

[ 5] 21.00-22.00 sec 2.91 GBytes 25.0 Gbits/sec

[ 5] 21.00-22.00 sec 2.98 GBytes 25.6 Gbits/sec 0 3.18 MBytes

[ 5] 22.00-23.00 sec 3.68 GBytes 31.6 Gbits/sec

[ 5] 22.00-23.00 sec 3.66 GBytes 31.4 Gbits/sec 0 3.18 MBytes

[ 5] 23.00-24.00 sec 3.41 GBytes 29.3 Gbits/sec

[ 5] 23.00-24.00 sec 3.38 GBytes 29.1 Gbits/sec 0 3.18 MBytes

[ 5] 24.00-25.00 sec 3.20 GBytes 27.5 Gbits/sec

[ 5] 24.00-25.00 sec 3.18 GBytes 27.3 Gbits/sec 0 3.18 MBytes
[ 5] 25.00-26.00 sec 3.10 GBytes 26.6 Gbits/sec
[ 5] 25.00-26.00 sec 3.05 GBytes 26.2 Gbits/sec 0 3.18 MBytes
[ 5] 26.00-27.00 sec 3.27 GBytes 28.1 Gbits/sec
[ 5] 26.00-27.00 sec 3.32 GBytes 28.5 Gbits/sec 0 3.18 MBytes
[ 5] 27.00-28.00 sec 3.21 GBytes 27.6 Gbits/sec
[ 5] 27.00-28.00 sec 3.24 GBytes 27.8 Gbits/sec 0 3.18 MBytes
[ 5] 28.00-29.00 sec 3.26 GBytes 28.0 Gbits/sec
[ 5] 28.00-29.00 sec 3.25 GBytes 27.9 Gbits/sec 1 3.18 MBytes
[ 5] 29.00-30.00 sec 3.52 GBytes 30.2 Gbits/sec
[ 5] 30.00-30.04 sec 131 MBytes 27.1 Gbits/sec


[ ID] Interval Transfer Bitrate
[ 5] 0.00-30.04 sec 97.8 GBytes 28.0 Gbits/sec receiver
[ 5] 29.00-30.00 sec 3.50 GBytes 30.1 Gbits/sec 0 3.18 MBytes


[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-30.00 sec 97.8 GBytes 28.0 Gbits/sec 12 sender
[ 5] 0.00-30.04 sec 97.8 GBytes 28.0 Gbits/sec receiver

iperf Done.

Server listening on 5201

console:/ #

相关推荐
南棱笑笑生13 天前
20240907在友善之臂的NanoPC-T6开发板使用Rockchip原厂的Buildroot点亮imx415
杂质
南棱笑笑生2 个月前
20240731在WIN10下数框框的方法【CPU】
杂质
南棱笑笑生6 个月前
20240403在ubuntu20.04下解压缩gz压缩包
杂质
南棱笑笑生8 个月前
20240203在Ubuntu20.04.6下配置stable-diffusion-webui.git
杂质
南棱笑笑生8 个月前
20240202在Ubuntu20.04.6下使用whisper.cpp的CPU模式
杂质
南棱笑笑生8 个月前
20240202在Ubuntu20.04.6下配置环境变量之后让nvcc --version显示正常
杂质
南棱笑笑生8 个月前
20240202在Ubuntu20.04.6下使用whisper.cpp的显卡模式
杂质
南棱笑笑生8 个月前
20240131在ubuntu20.04.6下使用whisper不同模式的比对
杂质
南棱笑笑生8 个月前
20240130在ubuntu20.04.6下卸载NVIDIA显卡的驱动
杂质