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

news2024/9/21 22:21:55

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:/ # 


本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2153445.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

828华为云征文|华为云Flexus云服务器X实例之openEuler系统下部署Grav内容管理系统

828华为云征文&#xff5c;华为云Flexus云服务器X实例之openEuler系统下部署Grav内容管理系统 前言一、Flexus云服务器X实例介绍1.1 Flexus云服务器X实例简介1.2 Flexus云服务器X实例特点1.3 Flexus云服务器X实例使用场景 二、Grav介绍2.1 CMS介绍2.2 Grav简介2.3 Grav特点2.4 …

TinyML-On-The-Fly: 实时、低功耗、低成本的微控制器嵌入式设备内计算机视觉技术用于无人机图像分类

这篇论文的标题是《TinyML-On-The-Fly: Real-Time Low-Power and Low-Cost MCU-Embedded On-Device Computer Vision for Aerial Image Classification》&#xff0c;作者是 Riya Samanta, Bidyut Saha, Soumya K. Ghosh&#xff0c;来自印度理工学院克勒格布尔分校。论文主要研…

电子元器件之MOS管,附上几个常用MOS管电路和仿真。

MOS管是一种常用的电子元器件。 1.MOS管的类别 MOSFET简称MOS&#xff0c;是一种绝缘栅型场效应管。按照类别可以分为增强型mos管和耗尽型mos管。 导电沟道的形成方式‌ 增强型MOS管&#xff1a;在没有外加电压时&#xff0c;源极和漏极之间没有导电沟道存在。只有当栅极电…

【玉米田】

题目 代码 #include <bits/stdc.h> using namespace std; typedef long long LL;const int mod 1e8; const int M 1 << 12; LL f[13][M]; int g[13]; vector<int> state; vector<int> p[M]; int n, m; bool check(int x) {return !(x & x <&…

攻防世界---->Windows_Reverse1(补)

做题笔记。 做题回顾。 假设&#xff0c;我们不知道地址随机怎么办&#xff1f;不能动调&#xff0c;只能静态分析。 下载 查壳 upx脱壳。 32ida打开。 动调报错。 重新打开&#xff0c;静态分析。 跟进关键函数。 不明白可以反汇编和汇编一起看。 溯源。 *decode 取值等于 by…

分布式锁之 防误删(优化之UUID防误删)

文章目录 1、AlbumInfoApiController --》testLock()2、AlbumInfoServiceImpl --》testLock()3、问题&#xff1a;删除操作缺乏原子性。 实现如下&#xff1a; 1、AlbumInfoApiController --》testLock() Tag(name "专辑管理") RestController RequestMapping(&quo…

【计网】从零开始掌握序列化与反序列化 --- 基础知识储备与程序重构

从零开始掌握序列化与反序列化 1 初识序列化与反序列化2 再谈Tcp协议3 程序重构3.1 Socket类3.2 回调函数设计3.3 最终的Tcp服务器类 1 初识序列化与反序列化 在刚学习计算机网络时&#xff0c;我们谈到过网络协议栈&#xff0c;其中最上层的就是应用层&#xff0c;那么这个应…

Qt圆角窗口

Qt圆角窗口 问题&#xff1a;自己重写了一个窗口&#xff0c;发现用qss设置圆角了&#xff0c;但是都不生效&#xff0c;不过子窗口圆角都生效了。 无边框移动窗口 bool eventFilter(QObject *watched, QEvent *evt) {static QPoint mousePoint;static bool mousePressed f…

开源、极简的B站第三方,建议所有人收藏

很多人说B站落寞了&#xff0c;但我觉得不是B站落寞&#xff0c;而是长视频落寞了。现代人已经没有充足的耐心&#xff0c;刷完一个十分钟的视频。毕竟&#xff0c;短视频可以把这十分钟切成50份&#xff0c;让我们开心50次。 可怕的是&#xff0c;B站即使落寞&#xff0c;在长…

继承的例题

答案&#xff1a;D 解析&#xff1a;C允许一个子类继承多个父类 知识点&#xff1a; 子类是父类的特殊化&#xff0c;父类是子类的泛化 解析&#xff1a;子类可以共享父类的属性和方法&#xff0c;选项A正确 面向对象关系中&#xff0c;类与类的关系包含继承&#xff0c;包…

IntelliJ IDEA 2024.1.4 (Ultimate Edition)找不到Add Framework Support解决方法

目录 背景: 解决方法&#xff1a; 步骤1: 步骤2&#xff1a; 步骤3&#xff1a; 创建Web项目的完整流程&#xff1a; 步骤1: 步骤2: 步骤3&#xff1a; 步骤4&#xff1a; Web优点: 背景: 我的IDE版本是IntelliJ IDEA 2024.1.4 (Ultimate Edition)&#xff0c;当我…

【优选算法之双指针】No.2--- 经典双指针算法(下)

文章目录 前言一、双指针示例&#xff1a;1.1 ⽔果成篮1.2 和为s的两个数字1.3 三数之和1.4 四数之和 二、双指针总结&#xff1a; 前言 &#x1f467;个人主页&#xff1a;小沈YO. &#x1f61a;小编介绍&#xff1a;欢迎来到我的乱七八糟小星球&#x1f31d; &#x1f4cb;专…

前后端分离,使用MOCK进行数据模拟开发,让前端攻城师独立于后端进行开发

mock是什么 Mock生成随机数据,拦截Ajax 请求&#xff0c;前后端分离&#xff0c;让前端攻城师独立于后端进行开发。 增加单元测试的真实性 通过随机数据,模拟各种场景。 在实际开发过程中&#xff0c;前端是通过axios来请求数据的&#xff0c;很多时候前端开发者就是通过写固定…

【Git必看系列】—— Git巨好用的神器之git stash篇

应用场景 当我们开发一个新功能时会先从master拉出一个分支dev&#xff0c;然后在这个dev分支下吭哧吭哧的开始写代码开发新功能&#xff0c;就如下代码所示&#xff0c;我们在dev分支下开发Person类的新功能getId() public class Person {private int id;private String nam…

Vue3:v-model实现组件通信

目录 一.性质 1.双向绑定 2.语法糖 3.响应式系统 4.灵活性 5.可配置性 6.多属性绑定 7.修饰符支持 8.defineModel使用 二.使用 1.父组件 2.子组件 三.代码 1.父组件代码 2.子组件代码 四.效果 一.性质 在Vue3中&#xff0c;v-model指令的性质和作用主要体现在…

vue3 快速入门系列 —— 基础

基础 前面我们已经用 vue2 和 react 做过开发了。 AIAutoPrediction 从 vue2 升级到 vue3 成本较大&#xff0c;特别是较大的项目。所以许多公司对旧项目继续使用vue2&#xff0c;新项目则使用 vue3。 有些UI框架&#xff0c;比如ant design vue1.x 使用的 vue2。但现在 an…

5.C++面向对象2(类对象大小计算,结构体内存对齐,大小端存储方式,this指针)

⭐本篇文章为C学习第4章&#xff0c;主要了解类对象大小和this指针 ⭐本人C代码仓库&#xff1a;yzc的c学习: 小川c的学习记录 - Gitee.com 目录 一. 类对象模型 1.1 类成员函数和成员变量的分布 1.2 如何计算类的大小&#xff1f;&#xff08;结构体内存对齐&#xff09…

卸载node,安装nvm的详细使用方法

一、nvm是什么&#xff1f; nvm是一个node的版本管理工具&#xff0c;可以简单切换的node版本、安装、查看。。。等等&#xff0c;与npm不同的是&#xff0c;npm是依赖包的管理工具。 二、nvm下载安装 安装之前需要先把 自己电脑上边的node给卸载了&#xff0c;不然安装不好…

【数据结构初阶】链式二叉树接口实现超详解

文章目录 1. 节点定义2. 前中后序遍历2. 1 遍历规则2. 2 遍历实现2. 3 结点个数2. 3. 1 二叉树节点个数2. 3. 2 二叉树叶子节点个数2. 3. 3 二叉树第k层节点个数 2. 4 二叉树查找值为x的节点2. 5 二叉树层序遍历2. 6 判断二叉树是否是完全二叉树 3. 二叉树性质 1. 节点定义 用…

日志系统第三弹:日志消息和格式化模块的实现

日志系统第三弹&#xff1a;日志消息和格式化模块的实现 一、日志消息模块的实现二、日志格式化模块的设计1.格式化占位符的约定2.如何打印1.各种零件类1.抽象类2.简单的零件类3.日期零件类4.非格式化数据零件类 2.Formatter 3.如何解析 三、日志格式化模块的实现1.解析函数2.c…