2025年5月25日 星期日

Linux user space delay

 #include <unistd.h>

usleep(100000); // 延遲 100,000 微秒 = 100 毫秒


---

#include <time.h>


struct timespec ts;

ts.tv_sec = 0;

ts.tv_nsec = 100 * 1000000L;  // 100 毫秒

nanosleep(&ts, NULL);

2025年5月11日 星期日

[網路] 如何判斷Bandwidth

 2.4G

HT Capabilities Bit 1(Supported Channel Width Set)

0: 20, 1: 20/40


如果Supported Channel Width Set,有可能是20或40

所以要再看Secondary Channel Offset


STA Channel Width   Secondary Channel Offset說明
0    0     使用 20 MHz
1    1(Above)     使用 40 MHz,副頻道在上面
1    3(Below)     使用 40 MHz,副頻道在下面