加入星计划,您可以享受以下权益:

  • 创作内容快速变现
  • 行业影响力扩散
  • 作品版权保护
  • 300W+ 专业用户
  • 1.5W+ 优质创作者
  • 5000+ 长期合作伙伴
立即加入
  • 正文
    • OpenWrt简单命令配置
    • 结语
  • 推荐器件
  • 相关推荐
  • 电子产业图谱
申请入驻 产业图谱

openwrt开发使用-wifi命令配置开发

2023/02/18
4563
阅读需 3 分钟
加入交流群
扫码加入
获取工程师必备礼包
参与热点资讯讨论

今天分享的内容是openwrt里面wifi的开发常用操作。

 

OpenWrt简单命令配置

查看对应驱动find / -name *ko | grep 76

拷贝复制到制定目录

cd ./build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-11-12-4bf26073/mt7603/
scp mt7603e.ko root@192.168.1.1:/tmp/ 
scp *.ko root@192.168.1.1:/tmp/ 

查看系统启动的驱动lsmod | grep 76

杀掉之前的驱动,启动自己自定义的驱动进行调试:rmmod mt7603einsmod mt7603e.ko

查看驱动启动后的log,看驱动是否符合要求执行dmesg | grep 7603

使用命令行设置无线和有线网络

我一般都是设置通道,以及功率

uci set wireless.radio0.channel='auto'
uci set wireless.radio0.txpower='20'

然后再回写到/etc文件,进行执行

uci commit 回写

通过wifi down/up有,使的wifi配置按照我的修改运行。

中间可以用wifi status,查看运行状态

此外大家可以参考这两篇文章进行更详细执行uci命令:

    https://blog.csdn.net/qq_36905972/article/details/85063290https://blog.csdn.net/JAZZSOLDIER/article/details/52440335

结语

这就是我自己在openwrt制作wifi开发使用分享。如果大家有更好的想法,也欢迎大家加我好友交流分享哈。

作者:良知犹存,白天努力工作,晚上原创公号号主。公众号内容除了技术还有些人生感悟,一个认真输出内容的职场老司机,也是一个技术之外丰富生活的人,摄影、音乐 and 篮球。关注我,与我一起同行。

推荐器件

更多器件
器件型号 数量 器件厂商 器件描述 数据手册 ECAD模型 风险等级 参考价格 更多信息
KSZ9031RNXCA 1 Microchip Technology Inc DATACOM, ETHERNET TRANSCEIVER

ECAD模型

下载ECAD模型
$5.5 查看
TSOP31130 1 Vishay Intertechnologies Logic Output Photo IC, GREEN, MINIATURE, PLASTIC PACKAGE-3
$1.54 查看
MO-9200AE-D3E-HE87M3515420 1 Microchip Technology Inc LVDS Output Clock Oscillator, 87.351542MHz Nom
暂无数据 查看
OpenWrt

OpenWrt

Welcome to the OpenWrt Project The OpenWrt Project is a Linux operating system targeting embedded devices. Instead of trying to create a single, static firmware, OpenWrt provides a fully writable filesystem with package management. This frees you from the application selection and configuration provided by the vendor and allows you to customize the device through the use of packages to suit any application. For developers, OpenWrt is the framework to build an application without having to bui…

Welcome to the OpenWrt Project The OpenWrt Project is a Linux operating system targeting embedded devices. Instead of trying to create a single, static firmware, OpenWrt provides a fully writable filesystem with package management. This frees you from the application selection and configuration provided by the vendor and allows you to customize the device through the use of packages to suit any application. For developers, OpenWrt is the framework to build an application without having to bui…收起

查看更多

相关推荐

电子产业图谱

一个程序员,喜欢写文章,还喜欢打篮球,也喜欢吉他钢琴的驳杂之人。日常更新自己,分享包括但不限于C/C++、嵌入式、物联网、Linux等编程学习笔记,同时,公众号内包含大量的学习资源。欢迎关注,一同交流学习,共同进步!