当前位置: 首页 > news >正文

【RealTek sdk-3.4.14b】Realtek WiFi开发调试指令总结

格式说明 

     RTL8192cd 驱动程序提供 MIB 接口,可通过“iwpriv”命令获取/设置参数。

set_mib

iwpriv set_mib name=value1[,value2,value3…]”

Iface: “wlan0”

value:

1.值可以是单个字段,也可以是用“,”分隔的多个字段,字段之间没有任何空格

2.如果值是字节数组的类型,则值的格式将是 0~f 的 ASCII 字符串,其中使用 2 ASCII 代表一个字节。

例如,设置WiFi path A的CCK的TXPower

iwpriv wlan0 set_mib pwrlevelCCK_A=08080909090a0a0a0a0b0b0b0c0c

说明:后面表示1~14信道的功率索引值,08表示信道1的

get_mib

iwpriv get_mib name

Iface: “wlan0”

Channel

获取channel

指令

iwpriv wlan0 get_mib channel

5G

# iwpriv wlan0 get_mib channel
wlan0     get_mib:40  

2.4G 

# iwpriv wlan1 get_mib channel
wlan1     get_mib:11  

channel

2.4G指令

iwpriv wlan1 set_mib channel=1

设置之后读取
/# iwpriv wlan1 get_mib channel
wlan1     get_mib:1  

注意:

       此时只是设置到mib区了,并未实际生效,要生效需要将接口down up下,指令如下

      ifconfig wlan1 down up

信道范围·1~14

5G指令

iwpriv wlan0 set_mib channel=36

设置之后读取

iwpriv wlan0 get_mib channel
wlan0     get_mib:36  

信道范围36~165

ch_low/ch_hi

自动信道选择允许选择的最低信道和最高信道,默认值为0表示不限制

获取2.4G默认值

iwpriv wlan1 get_mib ch_low
wlan1     get_mib:0  0  0  0  
iwpriv wlan1 get_mib ch_hi 
wlan1     get_mib:0  0  0  0  

设置2.4G

iwpriv wlan1 set_mib ch_low=1

iwpriv wlan1 set_mib ch_hi=1

备注:

      为了测试方便,我们将自动选择限制为1信道,方便查看指令是否生效

设置之后测试

ifconfig wlan1 down up

查看获取信道为1

获取5G默认值

iwpriv wlan0 get_mib ch_low
wlan0     get_mib:0  0  0  0  
iwpriv wlan0 get_mib ch_hi 
wlan0     get_mib:0  0  0  0  

设置5G

iwpriv wlan0 set_mib ch_low=36

iwpriv wlan0 set_mib ch_hi=36

设置之后测试

ifconfig wlan0 down up

查看获取信道为36

preamble

CCK preamble 类型 0: long preamble 1:short preamble

获取指令

iwpriv wlan1 get_mib preamble
wlan1     get_mib:1  0  0  0  

设置指令

iwpriv wlan1 set_mib preamble=1

ifconfig wlan1 down up

disable_ch14_ofdm

禁用通道 14 中的 OFDM 发送和接收。它还将阻止自动通道选择 ch14。

value=0 表示disable

value=1 表示enable

获取指令

iwpriv wlan1 get_mib disable_ch14_ofdm
wlan1     get_mib:0  0  0  0  

设置指令

 iwpriv wlan1 set_mib disable_ch14_ofdm=1

ifconfig wlan1 down up

disable_ch1213

禁止自动信道选择到ch12 和ch13

0:enable

1:disable

获取指令

 iwpriv wlan1 get_mib disable_ch1213
wlan1     get_mib:1  0  0  0  

设置指令

enable

iwpriv wlan1 set_mib disable_ch1213=1

ifconfig wlan1 down up

disable

iwpriv wlan1 set_mib disable_ch1213=0

ifconfig wlan1 down up

pa_type

支持8812不同的PA类型

0 – skyworth-5022

1 – RFMD-4501 / skyworth-85703

2 – SKYWORKS_5023

3 – RTC5634

16 – Internal PA

获取指令

iwpriv wlan0 get_mib pa_type

设置指令

iwpriv wlan0 set_mib pa_type=0

xcap

晶体电容值

0~62(0x3E),0 表示未校准

获取指令

iwpriv wlan0 get_mib xcap
wlan0     get_mib:61  0  0  0  
iwpriv wlan1 get_mib xcap
wlan1     get_mib:0  0  0  0 

设置指令

iwpriv wlan1 set_mib xcap=61
 iwpriv wlan1 get_mib xcap
wlan1     get_mib:61  0  0  0  

备注:

       一般都是生产写入,不要随便修改这个参数,可能会导致wifi连接不上

tssi1/tssi2

Tx 信号强度,tssi1表示Path A tssi2表示Path B,0~255,0表示未校准

获取指令

iwpriv wlan1 get_mib tssi1
wlan1     get_mib:0  0  0  0  
iwpriv wlan1 get_mib tssi2
wlan1     get_mib:0  0  0  0  
iwpriv wlan0 get_mib tssi1
wlan0     get_mib:0  0  0  0  
iwpriv wlan0 get_mib tssi2
wlan0     get_mib:0  0  0  0 

设置指令

iwpriv wlan1 set_mib tssi1=23
iwpriv wlan1 set_mib tssi2=23
iwpriv wlan0 set_mib tssi1=23
iwpriv wlan0 set_mib tssi2=23
iwpriv wlan0 get_mib tssi1
wlan0     get_mib:23  0  0  0  
iwpriv wlan0 get_mib tssi2
wlan0     get_mib:23  0  0  0  
iwpriv wlan1 get_mib tssi1
wlan1     get_mib:23  0  0  0  
iwpriv wlan1 get_mib tssi2
wlan1     get_mib:23  0  0  0  

ther

温度值,0表示未校准

范围:

For 8188C/8192C/8192D: 7 < ther <= 0x1d

Others: 7 < ther <= 0x32

获取指令

iwpriv wlan0 get_mib ther
wlan0     get_mib:30  0  0  0  
iwpriv wlan1 get_mib ther
wlan1     get_mib:25  0  0  0  

设置指令

iwpriv wlan0 set_mib ther=0x1e或者iwpriv wlan0 set_mib ther=30

iwpriv wlan1 set_mib ther=0x15或者iwpriv wlan1 set_mib ther=21

支持10进制和16进制设置

MIMO_TR_mode

MIMO模式分配

1 – 1T2R, 3 – 2T2R, 4 – 1T1R

获取指令

iwpriv wlan0 get_mib MIMO_TR_mode
wlan0     get_mib:3  0  0  0  
iwpriv wlan1 get_mib MIMO_TR_mode
wlan1     get_mib:3  0  0  0 

设置指令

iwpriv wlan0 set_mib MIMO_TR_mode=3
iwpriv wlan1 set_mib MIMO_TR_mode=3

tx2path

Enable tx using 2 path to send 1T rate

获取指令

iwpriv wlan0 get_mib tx2path
wlan0     get_mib:1  0  0  0  
iwpriv wlan1 get_mib tx2path
wlan1     get_mib:1  0  0  0

设置指令

iwpriv wlan0 set_mib tx2path=1

iwpriv wlan1 set_mib tx2path=1

bcn2path

Enable 2 path to send beacon

获取指令

iwpriv wlan1 get_mib bcn2path
wlan1     get_mib:0  
iwpriv wlan0 get_mib bcn2path
wlan0     get_mib:0

设置指令

iwpriv wlan0 set_mib bcn2path=1

iwpriv wlan1 set_mib bcn2path=1

acs_type

自动信道选择算法

0 – check numbers of APs to select a clear channel

1 – check numbers of APs, receiving traffic, false alarm counters to select a clear channel

获取指令

iwpriv wlan0 get_mib acs_type

iwpriv wlan1 get_mib acs_type

设置指令

 iwpriv wlan0 set_mib acs_type=1

iwpriv wlan1 set_mib acs_type=0

add_cck1M_pwr

增加CCK 1M速率的功率值

0 – disable,

Other – the power added to CCK 1M in unit of power level

获取指令

 iwpriv wlan0 get_mib add_cck1M_pwr
wlan0     get_mib:0  

设置指令

iwpriv wlan0 set_mib add_cck1M_pwr=1

ssid

设置wifi SSID  最大32个字符

获取指令

iwpriv wlan0 get_mib ssid

设置指令

iwpriv wlan0 set_mib ssid="aaaa-test"

bcnint

设置beacon间隔单位ms,默认值100ms

范围20~1024

获取指令

iwpriv wlan0 get_mib bcnint
wlan0     get_mib:100  0  0  0  
iwpriv wlan1 get_mib bcnint
wlan1     get_mib:100  0  0  0 

设置指令

iwpriv wlan0 set_mib bcnint=200

iwpriv wlan0 set_mib bcnint=200

dtimperiod

DTIM period

1~255,默认1

获取指令

iwpriv wlan0 get_mib dtimperiod
wlan0     get_mib:1  0  0  0  
iwpriv wlan1 get_mib dtimperiod
wlan1     get_mib:1  0  0  0 

设置指令

iwpriv wlan0 set_mib dtimperiod=2

iwpriv wlan1 set_mib dtimperiod=2

swcrypto

S/w encryption enabled/disabled

0 – disable, 1 – enable

获取指令

iwpriv wlan0 get_mib swcrypto

iwpriv wlan1 get_mib swcrypto

设置指令

iwpriv wlan0 set_mib swcrypto=1

iwpriv wlan1 set_mib swcrypto=1

aclmode/aclnum/acladdr

aclmode

Access control mode 0 – disable, 1 – accept, 2 – deny

aclnum

Set number of ACL Suggest set ‘0’ whenever driver is re-initialized

acladdr

Set access control address xxxxxxxxxxxx (12 digits mac address) When acl is added, the aclnum will be increased automatically

oprates

Operational rates

Bit0-bit11 for 1,2,5.5,11,6,9,12,18,24,,36,48,54 M 

默认值0xfff

获取指令

iwpriv wlan1 get_mib oprates   
wlan1     get_mib:255  15  0  0  
iwpriv wlan0 get_mib oprates
wlan0     get_mib:240  15  0  0 

设置指令

iwpriv wlan0 set_mib oprates=0xfff

iwpriv wlan1 set_mib oprates=0xfff

basicrates

Basic rates

Bit0-bit11 for 1,2,5.5,11,6,9,12,18,24,,36,48,54 M

默认值0xf

获取指令

iwpriv wlan0 get_mib basicrates
wlan0     get_mib:15  0  0  0  
iwpriv wlan1 get_mib basicrates
wlan1     get_mib:15  0  0  0 

设置指令

iwpriv wlan0 set_mib basicrates=0xf

iwpriv wlan1 set_mib basicrates=0xf

regdomain

Regulation domain

1-15 (FCC, IC, ETSI, SPAIN, FRANCE, MKK, ISREAL, MKK1, MKK2, MKK3, NCC, RUSSIAN, CN, GLOBAL, WORLD-WIDE)

获取指令

iwpriv wlan1 get_mib regdomain 
wlan1     get_mib:3  0  0  0  
iwpriv wlan0 get_mib regdomain
wlan0     get_mib:3  0  0  0 

设置指令

iwpriv wlan0 set_mib regdomain=3

iwpriv wlan1 set_mib regdomain=3

txpwr_lmt_index

Set specific region domain for tx power limit

0 – use mib regdomain for tx power limit,

Other – the specific region domain index for tx power limit

获取指令

iwpriv wlan0 get_mib txpwr_lmt_index
wlan0     get_mib:0  0  0  0  
iwpriv wlan1 get_mib txpwr_lmt_index
wlan1     get_mib:0  0  0  0 

设置指令

iwpriv wlan0 set_mib txpwr_lmt_index=0

iwpriv wlan1 set_mib txpwr_lmt_index=0

autorate

Auto rate adaptive

获取指令

iwpriv wlan0 get_mib autorate
wlan0     get_mib:1  0  0  0  
iwpriv wlan1 get_mib autorate
wlan1     get_mib:1  0  0  0  

设置指令

iwpriv wlan0 set_mib autorate=1

iwpriv wlan1 set_mib autorate=1

txforce

设置固定TX速率为固定速率。
指令
iwpriv wlan0 set txforce=11
取值说明:0~11 for rate 1, 2, 5.5, 11, 6, 9, 12, 18, 24, 36, 48, 54M;
12~27 for rate MCS0, MCS1, …, MCS15;
这个命令设置完之后会立即生效,不需要对wlan0进行down up操作

fixrate

Fixed Tx rate,Refer when auto rate is disabled

Bit0-bit11 for 1,2,5.5,11,6,9,12,18,24,,36,48,54 M

Bit12-Bit27 for MCS0,MCS1,…,MCS15

(Bit31 + 0) for NSS1-MCS0

(Bit31 + 1) for NSS1-MCS1

(Bit31 + 2) for NSS1-MCS2…

(Bit31 + 10) for NSS2-MCS0

(Bit31 + 11) for NSS2-MCS1

(Bit31 + 12) for NSS2-MCS2

设置TX为固定速率。
iwpriv wlan0 set fixrate=0x08000000 //mcs15
这个命令设置完之后不会立即生效,需要对wlan0进行down up操作之后才能生效。另外设置fixrate之前需要使用iwpriv wlan0 set_mib autorate=0把autorate关闭。

获取指令

iwpriv wlan0 get_mib fixrate
wlan0     get_mib:0  0  0  0  
iwpriv wlan1 get_mib fixrate
wlan1     get_mib:0  0  0  0  

设置指令

iwpriv wlan0 set_mib fixrate=0xf

iwpriv wlan1 set_mib fixrate=0xf

disable_protection

orcedly disable protection mode

0 – auto, 1 – disable protection

Normally when 11g is used, driver will auto detect if legacy (11b) device is existed. When 11n is used, driver will auto detect if legacy (11b/g) device is existed. If yes, it will enable protection mode automatically.

获取指令

iwpriv wlan0 get_mib disable_protection
wlan0     get_mib:1  0  0  0  
iwpriv wlan1 get_mib disable_protection
wlan1     get_mib:1  0  0  0

设置指令

iwpriv wlan0 set_mib disable_protection=1

iwpriv wlan1 set_mib disable_protection=1

disable_olbc

Forcedly OLBC detection

0 – auto, 1 – disable protection

Normally 11g AP should detect OLBC. If disabled, AP will enter protection mode only when legacy device associated.

deny_legacy

Deny the association from legacy STA for corresponding band

1 – 11b, 2 – 11g, 4 – 11a, 8 – 11n

Set the corresponding legacy band of STA to deny

prob_info_enable

Enable wlan driver to collect probe request information

0 – disable, 1 – enable

cat /proc/wlan0/probe_in fo to see the collect results

fast_roaming

Client mode fast roaming

0 – disable, 1 – enable

lowestMlcstRate

Use lowest basic rate to send multicast and broadcast

 0 – disable Bit0-bit11 for 1,2,5.5,11,6,9,12,18,24,,36,48,54 M

Bit12-Bit27 for MCS0,MCS1,…,MCS15

stanum

Limit max associated sta number

0-32. 0 – disable (not limit).

获取指令

iwpriv wlan0 get_mib stanum

iwpriv wlan1 get_mib stanum

设置指令

iwpriv wlan0 set_mib stanum=16

iwpriv wlan0 set_mib stanum=16

802_1x

Flag of using 802.1x 

0 disable 1 enable

When 802.1x is enabled, the Auth daemon must be invoked

获取指令

iwpriv wlan0 get_mib 802_1x

iwpriv wlan1 get_mib 802_1x

设置指令

iwpriv wlan0 set_mib 802_1x=0

iwpriv wlan0 set_mib 802_1x=0

hiddenAP

Hidden AP enable/disable

0 disabled 1 enabled

获取指令

iwpriv wlan0 get_mib hiddenAP
wlan0     get_mib:0  0  0  0  
iwpriv wlan1 get_mib hiddenAP
wlan1     get_mib:0  0  0  0  

设置指令

iwpriv wlan0 set_mib hiddenAP=1

iwpriv wlan1 set_mib hiddenAP=1

rtsthres/fragthres

rtsthres

RTS threshold

0-2347 default 2347

fragthres

Fragment threshold

256-2346 default 2346

shortretry/longretry

shortretry

Short retry limit 0-255

0 When set to 0, driver choose appropriate retry limit itself

longretry

Long retry limit 0-255 0 When set to 0, driver choose appropriate retry limit itself

expired_time

Client inactivity time in 10ms

>100 30000 Time unit is 10 ms.

获取指令

iwpriv wlan0 get_mib expired_time
wlan0     get_mib:48  117  0  0  
iwpriv wlan1 get_mib expired_time
wlan1     get_mib:48  117  0  0 

设置指令

iwpriv wlan0 set_mib expired_time=30000

iwpriv wlan0 set_mib expired_time=30000

block_relay

Block packet relaying between associated clients

0 – relay, 1 – block relay and drop, 2 – block relay and indicate to bridge

获取指令

iwpriv wlan0 get_mib block_relay
wlan0     get_mib:0  0  0  0  
iwpriv wlan1 get_mib block_relay
wlan1     get_mib:0  0  0  0 

设置指令

iwpriv wlan0 set_mib block_relay=1

iwpriv wlan1 set_mib block_relay=1

deny_any

Deny the association SSID of “any” including upper and lower cases

0 – disable, 1 – enable

crc_log

Calculate CRC error packets

0 – disable, 1 – enable

wifi_specific

Do WiFi logo test specific check

0 – disable, 1 – enable, 2 – auto 2

0 for performance mode;

1 for WiFi mode,

2 for auto mode.

PS. For 8192DR 1x1 concurrent mode and 8188E, please set 1 to pass WiFi logo test.

disable_txsc/disable_rxsc/disable_brsc

disable_txsc

Tx shortcut enable/disable

0 – enable, 1 – enable

disable_rxsc

Rx shortcut enable/disable

0 – enable, 1 – enable

disable_brsc

Bridge shortcut enable/disable

0 – enable, 1 – enable

band

Band selection

1 – 11b, 2 – 11g, 4 – 11a, 8 – 11n 64 – 11ac

vap_enable

Tell driver if multiple AP function is enabled or disabled

0 – disable, 1 – enable

If multiple AP is enabled, this mib must be set to 1.

func_off

Temporary disable wlan function

0 – normal, 1 – wlan off

Qos相关

qos_enable

Support WMM and QoS

0 – disable, 1 – enable

apsd_enable

Support WMM APSD function

0 – disable, 1 – enable

apsd_sta_be

Enable client mode BE queue

0 – disable, 1 – enable

This mid is only valid when apsd_enable is 1(enable)

apsd_sta_bk

Enable client mode BK queue

0 – disable, 1 – enable This mid is only valid when apsd_enable is 1(enable)

apsd_sta_vi

Enable client mode VI queue

0 – disable, 1 – enable

This mid is only valid when apsd_enable is 1(enable)

apsd_sta_vo

Enable client mode VO queue

0 – disable, 1 – enable

This mid is only valid when apsd_enable is 1(enable)

supportedmcs

Supported MCS rates Bit 0-15 for MCS0, …, MCS15

0xffff

basicmcs

Basic MCS rates Bit 0-15 for MCS0, …, MCS15

use40M

Support 40M bandwidth in 11n mode

0 – 20M 1 – 40M 2 -80M

2ndchoffset

Control sideband offset

1 – secondary channel is below the primary channel,

2 – secondary channel is above the primary channel 1

shortGI20M

Support short GI in 20M bandwidth

0 – disable, 1 – enable

shortGI40M

Support short GI in 40M bandwidth

0 – disable, 1 – enable

stbc

Support Space Time Block Coding

0 – disable, 1 – enable

ldpc

Enable ldpc

0 – disable, 1 – enable

ampdu

Support packet aggratation

0 – disable, 1 – enable

coexist

Support 20M/40M coexistant mode

0 – disable, 1 – enable

debug_err

Flag of DEBUG_ERR() macro

Bit value defined in 8185ag_debug.h (in hex) ffffffff

debug_info

Flag of DEBUG_INFO() macro

Bit value defined in 8185ag_debug.h (in hex) 0

debug_warn

Flag of DEBUG_WARN() macro

Bit value defined in 8185ag_debug.h (in hex) 0

debug_trace

Flag of DEBUG_TRACE() macro

Bit value defined in 8185ag_debug.h (in hex) 0

NUM_TX_DESC 

8192cd_cfg.h
#define NUM_TX_DESC 2176 //512 // kmalloc max size issue

CE认证测试

2.4G

iwpriv wlan1 set_mib adaptivity_enable=1
iwpriv wlan1 set_mib manual_edca=1 
iwpriv wlan1 set regdomain=13
Ifconfig wlan1 down up

5G

iwpriv wlan0 set_mib adaptivity_enable=1
iwpriv wlan0 set_mib manual_edca=1 
iwpriv wlan0 set regdomain=13
Ifconfig wlan0 down up

开启dbg

echo dbg 0 1 > /proc/wlan0/cmd // dig odfm debug

修改dig

iwpriv wlan0 set_mib original_dig_restore=0

0 :开启tdma_dig
1 :关闭tdma_dig

使用iwpriv wlan0 set_mib rssi_dump=1可以看到输出

[1] 45% tx VHT NSS2 7s rx VHT NSS2 2 (ss 23 24) (FA CCK 0 0 OFDM 852 80)(CCA 2198 180)(LIG 0x2a,HIG 0x4e)(TP 0,0)

LIG:远距离

HIG:近距离

iwpriv wlan0 set_mib dig_enable=1// 关闭 DIG  
read DIG- 92Eiwpriv wlan0 read_reg b,c50siwpriv wlan0 read_reg b,c58- 8812ARiwpriv wlan0 read_reg b,c50iwpriv wlan0 read_reg b,e50- 8814ARiwpriv wlan0 read_reg b,c50iwpriv wlan0 read_reg b,e50iwpriv wlan0 read_reg b,1A50iwpriv wlan0 read_reg b,1850- write DIG- 89ESiwpriv wlan0 write_reg b,c50,20 - 92ESiwpriv wlan0 write_reg b,c50,20iwpriv wlan0 write_reg b,c58,20- 8812ARiwpriv wlan0 write_reg b,c50,2aiwpriv wlan0 write_reg b,e50,2a- 8814ARiwpriv wlan0 write_reg b,c50,30iwpriv wlan0 write_reg b,e50,30iwpriv wlan0 write_reg b,1A50,30iwpriv wlan0 write_reg b,1850,30   - DIG Related Registers- N-Series:Path-A IGI = RegC50[6:0]Path-B IGI = RegC58[6:0]CCK FA     = (RegA58[31:24]<<8) | RegA5C[7:0]OFDM FA    = RegCF0[15:0]RegCF0[31:16]RegDA0[31:16]RegDA4[15:0]RegDA4[31:16]RegDA8[15:0]- AC-Series:Path-A IGI = RegC50[6:0]Path-B IGI = RegE50[6:0]CCK FA     = RegA5C[15:0]OFDM FA    = RegF48[15:0]

配置mimo多路方法

iwpriv wlan0 mimo 0
1: switch to 1T1R
2: switch to 2T2R
3: switch to 3T3R
0: auto

countrycode和countrystr

iwpriv wlan0 set_mib countrycode=1
iwpriv wlan0 set_mib countrystr=CN
第一条命令是设置countrycode的使能状态,1为使能

后面那条命令为设置具体的国家码,2个字符

at_ss

触发扫描周边wifi

iwpriv wlan0 at_ss

iwpriv wlan1 at_ss

sleep 7 //需要休眠7s等待wifi扫描完成

查看扫描结果
cat /proc/wlan0/SS_Result

cat /proc/wlan1SS_Result

rssi_dump

设置周期性调试信息输出的时间间隔
Iwpriv wlan0 set_mib rssi_dump =1
0~ 100,单位为秒
0为关闭周期性输出的调试信息,否则周期性输出调试信息。
 

参考链接:

开发调试指令大全--(realtek开发调试命令)_珞珈琉璃的博客-CSDN博客

相关文章:

【RealTek sdk-3.4.14b】Realtek WiFi开发调试指令总结

格式说明 RTL8192cd 驱动程序提供 MIB 接口&#xff0c;可通过“iwpriv”命令获取/设置参数。 set_mib iwpriv set_mib namevalue1[,value2,value3…]” Iface: “wlan0” value: 1.值可以是单个字段&#xff0c;也可以是用“&#xff0c;”分隔的多个字段&#xff0c;字…...

基于Vue 的文本类弹框代码Demo

<template><div class"text-popup" v-if"showPopup"><h2>{{ title }}</h2><p>{{ content }}</p><button click"closePopup">关闭</button></div><div class"main-content"&…...

2023.08.01 驱动开发day8

驱动层 #include <linux/init.h> #include <linux/module.h> #include <linux/of.h> #include <linux/of_irq.h> #include <linux/interrupt.h> #include <linux/fs.h> #include <linux/gpio.h> #include <linux/of_gpio.h>#…...

计算机视觉--距离变换算法的实战应用

前言&#xff1a; Hello大家好&#xff0c;我是Dream。 计算机视觉CV是人工智能一个非常重要的领域。 在本次的距离变换任务中&#xff0c;我们将使用D4距离度量方法来对图像进行处理。通过这次实验&#xff0c;我们可以更好地理解距离度量在计算机视觉中的应用。希望大家对计算…...

MIT 6.824 -- MapReduce -- 01

MIT 6.824 -- MapReduce -- 01 引言抽象和实现可扩展性可用性(容错性)一致性MapReduceMap函数和Reduce函数疑问 课程b站视频地址: MIT 6.824 Distributed Systems Spring 2020 分布式系统 推荐伴读读物: 极客时间 – 大数据经典论文解读DDIA – 数据密集型应用大数据相关论文…...

概念解析 | 利用IAA迭代自适应方法实现高精度角度估计

利用IAA迭代自适应方法实现高精度角度估计 注1:本文系“概念辨析”系列之一,致力于简洁清晰地解释、辨析复杂而专业的概念。本次辨析的概念是:IAA迭代自适应方法在雷达角度估计中的应用。 背景介绍 在雷达目标检测与定位中,准确估计目标角度是实现高精度定位的关键。传统的基于…...

正则表达式必知必会

文章目录 前言匹配单个字符匹配任意字符匹配一组字符取非匹配元字符匹配数字匹配所有字母和数字匹配空白字符重复匹配避免过度匹配边界匹配字符串边界子表达式回溯引用回溯引用中的替换操作向前查找向后查找 前言 在工作中使用正则表达式可以提高我们的效率&#xff0c;这篇博…...

[SQL系列] 从头开始学PostgreSQL 分库分表

什么是分库分表 分库分表是一种数据库架构设计的方法&#xff0c;用于应对大规模数据的存储和查询。当单个数据库的存储容量或查询性能无法满足需求时&#xff0c;可以通过将数据分散存储在多个数据库服务器上&#xff0c;以提高系统的可扩展性和性能。 分库分表通常包…...

【VScode】Remote-SSH XHR failed无法访问远程服务器

问题概述 当使用VScode连接远程服务器时&#xff0c;往往需要使用Remote-SSH这个插件。而该插件有一个小bug&#xff0c;当远程服务器网络不佳时容易出现。 在控制台会出现下述语句&#xff1a; Resolver error: Error: XHR failed at y.onerror (vscode-file://vscode-app/…...

pycharm打开terminal报错

Pycharm打开终端报错如何解决&#xff1f;估计是终端启动conda不顺利&#xff0c;需要重新设置路径。参考以下文章的做法即可。 Windows下Pycharm中Terminal无法进入conda环境和Python Console 不能使用 给pycharm中Terminal 添加新的shell&#xff0c;才可以使用conda环境 W…...

C#与C/C++交互(1)——需要了解的基础知识

【前言】 C#中用于实现调用C/C的方案是P/Invoke&#xff08;Platform Invoke&#xff09;&#xff0c;让托管代码可以调用库中的函数。类似的功能&#xff0c;JAVA中叫JNI&#xff0c;Python中叫Ctypes。 常见的代码用法如下&#xff1a; [DllImport("Test.dll", E…...

LeetCode笔记:Weekly Contest 356

LeetCode笔记&#xff1a;Weekly Contest 356 1. 题目一 1. 解题思路2. 代码实现 2. 题目二 1. 解题思路2. 代码实现 3. 题目三 1. 解题思路2. 代码实现 4. 题目四 1. 解题思路2. 代码实现 比赛链接&#xff1a;https://leetcode.com/contest/weekly-contest-356/ 1. 题目一…...

2 Python的基础语法

概述 在上一节的内容中&#xff0c;我们介绍了Python的诞生、发展历程、特色、缺点和应用领域。从本节开始&#xff0c;我们将正式学习Python。Python是一门简洁和优雅的语言&#xff0c;有自己特殊的一些语法规则。因此&#xff0c;在介绍Python编程的有关知识之前&#xff0c…...

抖音seo矩阵系统源代码开发搭建技术分享

抖音SEO矩阵系统是一个较为复杂的系统&#xff0c;其开发和搭建需要掌握一定的技术。以下是一些技术分享&#xff1a; 技术分享 抖音SEO矩阵系统的源代码可以使用JAVA、Python、PHP等多种语言进行开发。其中&#xff0c;JAVA语言的应用较为广泛&#xff0c;因为JAVA语言有良好…...

python#django数据库一对一/一对多/多对多

一对一OneToOneField 用户和用户信息 搭建 # 一对一 class TestUser(models.Model): usernamemodels.CharField(max_length32) password models.CharField(max_length32) class TestInfo(models.Model): mick_namemodels.CharField(max_length32) usermode…...

记RT-Thread rt_timer_start函数的问题

我使用的RT-Thread版本为4.0.3。 我看了5.0.1的代码&#xff0c;此问已经被修复。 在4.0.3版本中的rt_timer_start函数源码如下&#xff1a; rt_err_t rt_timer_start(rt_timer_t timer) {unsigned int row_lvl;rt_list_t *timer_list;register rt_base_t level;rt_list_t *r…...

C++初阶——拷贝构造和运算符重载(const成员)

目录 1. 拷贝构造函数 1.2 拷贝构造函数特征&#xff1a; 2. 默认拷贝构造函数 2.1 未显式定义&#xff0c;编译器会生成默认的拷贝构造函数。 默认的拷贝构造函数对象按内存存储按字节序完成拷贝&#xff0c;这种拷贝叫做浅拷贝&#xff0c;或者值拷贝 3. 运算符重载 3.1…...

go练习 day01

DTO: note_dto.go package dtoimport "king/model"type NoteAddDTO struct {ID uintTitle string json:"title" form:"title" binding:"required" message:"标题不能为空"Content string json:"conten…...

C# Blazor 学习笔记(0.1):如何开始Blazor和vs基本设置

文章目录 前言资源推荐环境如何开始Blazor个人推荐设置注释快捷键热重载设置 前言 Blazor简单来说就是微软提供的.NET 前端框架。使用 WebAssembly的“云浏览器”&#xff0c;集成了Vue,React,Angular等知名前端框架的特点。 资源推荐 微软官方文档 Blazor入门基础视频合集 …...

原码的乘法运算 补码乘法运算

补码乘法 对比...

多云管理“拦路虎”:深入解析网络互联、身份同步与成本可视化的技术复杂度​

一、引言&#xff1a;多云环境的技术复杂性本质​​ 企业采用多云策略已从技术选型升维至生存刚需。当业务系统分散部署在多个云平台时&#xff0c;​​基础设施的技术债呈现指数级积累​​。网络连接、身份认证、成本管理这三大核心挑战相互嵌套&#xff1a;跨云网络构建数据…...

23-Oracle 23 ai 区块链表(Blockchain Table)

小伙伴有没有在金融强合规的领域中遇见&#xff0c;必须要保持数据不可变&#xff0c;管理员都无法修改和留痕的要求。比如医疗的电子病历中&#xff0c;影像检查检验结果不可篡改行的&#xff0c;药品追溯过程中数据只可插入无法删除的特性需求&#xff1b;登录日志、修改日志…...

在Ubuntu中设置开机自动运行(sudo)指令的指南

在Ubuntu系统中&#xff0c;有时需要在系统启动时自动执行某些命令&#xff0c;特别是需要 sudo权限的指令。为了实现这一功能&#xff0c;可以使用多种方法&#xff0c;包括编写Systemd服务、配置 rc.local文件或使用 cron任务计划。本文将详细介绍这些方法&#xff0c;并提供…...

今日学习:Spring线程池|并发修改异常|链路丢失|登录续期|VIP过期策略|数值类缓存

文章目录 优雅版线程池ThreadPoolTaskExecutor和ThreadPoolTaskExecutor的装饰器并发修改异常并发修改异常简介实现机制设计原因及意义 使用线程池造成的链路丢失问题线程池导致的链路丢失问题发生原因 常见解决方法更好的解决方法设计精妙之处 登录续期登录续期常见实现方式特…...

智能AI电话机器人系统的识别能力现状与发展水平

一、引言 随着人工智能技术的飞速发展&#xff0c;AI电话机器人系统已经从简单的自动应答工具演变为具备复杂交互能力的智能助手。这类系统结合了语音识别、自然语言处理、情感计算和机器学习等多项前沿技术&#xff0c;在客户服务、营销推广、信息查询等领域发挥着越来越重要…...

RSS 2025|从说明书学习复杂机器人操作任务:NUS邵林团队提出全新机器人装配技能学习框架Manual2Skill

视觉语言模型&#xff08;Vision-Language Models, VLMs&#xff09;&#xff0c;为真实环境中的机器人操作任务提供了极具潜力的解决方案。 尽管 VLMs 取得了显著进展&#xff0c;机器人仍难以胜任复杂的长时程任务&#xff08;如家具装配&#xff09;&#xff0c;主要受限于人…...

零知开源——STM32F103RBT6驱动 ICM20948 九轴传感器及 vofa + 上位机可视化教程

STM32F1 本教程使用零知标准板&#xff08;STM32F103RBT6&#xff09;通过I2C驱动ICM20948九轴传感器&#xff0c;实现姿态解算&#xff0c;并通过串口将数据实时发送至VOFA上位机进行3D可视化。代码基于开源库修改优化&#xff0c;适合嵌入式及物联网开发者。在基础驱动上新增…...

WPF八大法则:告别模态窗口卡顿

⚙️ 核心问题&#xff1a;阻塞式模态窗口的缺陷 原始代码中ShowDialog()会阻塞UI线程&#xff0c;导致后续逻辑无法执行&#xff1a; var result modalWindow.ShowDialog(); // 线程阻塞 ProcessResult(result); // 必须等待窗口关闭根本问题&#xff1a…...

SpringAI实战:ChatModel智能对话全解

一、引言&#xff1a;Spring AI 与 Chat Model 的核心价值 &#x1f680; 在 Java 生态中集成大模型能力&#xff0c;Spring AI 提供了高效的解决方案 &#x1f916;。其中 Chat Model 作为核心交互组件&#xff0c;通过标准化接口简化了与大语言模型&#xff08;LLM&#xff0…...

基于鸿蒙(HarmonyOS5)的打车小程序

1. 开发环境准备 安装DevEco Studio (鸿蒙官方IDE)配置HarmonyOS SDK申请开发者账号和必要的API密钥 2. 项目结构设计 ├── entry │ ├── src │ │ ├── main │ │ │ ├── ets │ │ │ │ ├── pages │ │ │ │ │ ├── H…...