tftp 和 adb 的使用 2021年12月23日

------服务端安装,IP:192.168.0.191
yum install xinetd  //网络守护进程,不用安装
 yum install tftp -y        //tftp
 yum install tftp-server -y    //tftp服务端
    systemctl status tftp.service    //查看状态
    systemctl start tftp.service
    ls /var/lib/tftpboot/  //安装tftp自动创建的目录,想要从服务器端下载文件必须将文件放于此目录下
 ss -ntul    //查看开启的端口 *:69 是否开启

------客户端安装
yum install tftp -y        //开发板一般自带tftp 客户端,不用装
    tftp 192.168.0.189

ubuntu:下载文件aa1.txt
    [root@test189 thread]# tftp 192.168.0.191
    tftp> get aa1.txt    //下载到当前目录下
设备下载上传命令:
    下载:tftp -g -r 文件 地址 。
        //不能在根目录执行 
        cd app
        tftp -g -r zi.txt 192.168.0.191
    上传:tftp -p -l 文件 地址
    
------------get文件时,报超时的解决办法,服务端关闭防火墙
/usr/sbin/sestatus -v    //查看防火墙状态
getenforce    //查看selinux防火墙状态
setenforce 0    //关闭防火墙

=========adb=======================
 adb服务 adb客户端push代码到硬件,adb走usb口(串口)。  host口供电(是电脑供电,可以读u盘),device的时可以用adb(不能读u盘)
    下载地址:https://developer.android.google.cn/studio/releases/platform-tools
        放到环境变量即可
    adb shell pm list packages   //查看安装了哪些包
    adb devices        //查看链接了哪些设备
    adb -s ingenic_d86a shell    //进入设备shell,设备ingenic_d86a
    adb -s emulator-5554 shell    //emulator-5554模拟器雷神
    adb pull system/file.txt D:/
    adb -s ingenic_d86a pull /app/data C:\Users\Administrator\aa  //将设备的文件拉取到win下aa目录
    adb push D:\file.txt system/    //将win的文件推到 设备sys目录
1.查看安卓手机安装了哪些app
    adb shell pm list packages
2.获取app信息
    adb shell pm path com.example.wetool
3.查看链接的是那台手机:
    adb devices
4.卸载app
    adb uninstall com.example.wetool
5.查看/data/app目录下有哪些文件
    adb shell ls /data/app

 gcc工具:mingw-w64-install
设备linux发http/s请求,使用 libcurl 包
 Adobe Audition 音频制作工具

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值