debian-F4232H测试

本文记录了USB转串口设备在不同平台上的稳定性测试过程及结果。在PC及嵌入式平台上进行了为期一周的四个串口并发读写测试,结果显示USB转串口设备在整个测试期间未出现丢包或错包现象,表明其在工业应用中具有较高的稳定性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

怎么测试这个的稳定性?

四个串口,四个线程,不停的读写,看看是否稳定!
想测试一下,USB转串口用于工业到底考不靠谱!
2017.12.4

在pc下测试,四个串口raw发送接收测试,晚10:00到早10:00, 没有丢包和错包
2017.12.9
在nanopc-t3上,debian, 四个串口并发发送接收,12.9-12.16:18:00,测试7天,工作正常!
看来usb的稳定性很高的,只是由于协议复杂,总线速率高,导致使用没有特别的优点!
2017.12.16

gacia@debian-NextCloud-25:~$ sudo apt update && sudo apt install openssl -y 命中:1 https://mirrors.aliyun.com/debian bullseye InRelease 获取:2 https://mirrors.aliyun.com/debian-security bullseye-security InRelease [27.2 kB] 获取:3 https://mirrors.aliyun.com/debian bullseye-updates InRelease [44.1 kB] 获取:4 https://mirrors.aliyun.com/debian bullseye-backports InRelease [49.0 kB] 获取:5 https://mirrors.aliyun.com/debian-security bullseye-security/main Sources [243 kB] 命中:6 https://packages.sury.org/php bookworm InRelease 获取:7 https://mirrors.aliyun.com/debian-security bullseye-security/main amd64 Packages [380 kB] 命中:8 http://repo.mysql.com/apt/debian bookworm InRelease 已下载 743 kB,耗时 1秒 (683 kB/s) 正在读取软件包列表... 完成 正在分析软件包的依赖关系树... 完成 正在读取状态信息... 完成 所有软件包均为最新。 正在读取软件包列表... 完成 正在分析软件包的依赖关系树... 完成 正在读取状态信息... 完成 openssl 已经是最新版 (3.0.16-1~deb12u1)。 openssl 已设置为手动安装。 下列软件包是自动安装的并且现在不需要了: liburing2 使用'sudo apt autoremove'来卸载它(它们)。 升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。 有 1 个软件包没有被完全安装或卸载。 解压缩后会消耗 0 B 的额外空间。 正在设置 nginx-core (1.18.0-6.1+deb11u4) ... Warning: The unit file, source configuration file or drop-ins of nginx.service changed on disk. Run 'systemctl daemon-reload' to reload units. Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details. invoke-rc.d: initscript nginx, action "start" failed. × nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enabled) Active: failed (Result: exit-code) since Mon 2025-06-09 14:32:05 CST; 8ms ago Duration: 1h 2min 5.665s Docs: man:nginx(8) Process: 42069 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE) CPU: 25ms 6月 09 14:32:05 debian-NextCloud-25 systemd[1]: Starting nginx.service - A high performance web server and a reverse proxy server... 6月 09 14:32:05 debian-NextCloud-25 nginx[42069]: nginx: [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive in /etc/nginx/sites-enabled/nextcloud.conf:9 6月 09 14:32:05 debian-NextCloud-25 nginx[42069]: nginx: configuration file /etc/nginx/nginx.conf test failed 6月 09 14:32:05 debian-NextCloud-25 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE 6月 09 14:32:05 debian-NextCloud-25 systemd[1]: nginx.service: Failed with result 'exit-code'. 6月 09 14:32:05 debian-NextCloud-25 systemd[1]: Failed to start nginx.service - A high performance web server and a reverse proxy server. Warning: The unit file, source configuration file or drop-ins of nginx.service changed on disk. Run 'systemctl daemon-reload' to reload units. dpkg: 处理软件包 nginx-core (--configure)时出错: 已安装 nginx-core 软件包 post-installation 脚本 子进程返回错误状态 1 在处理时有错误发生: nginx-core E: Sub-process /usr/bin/dpkg returned an error code (1) gacia@debian-NextCloud-25:~$
最新发布
06-10
#!/bin/bash ############# Part 0 Preparation ##################### if [ $# -ne 2 ];then echo "本脚本的用法为 sudo ./pxe-set.sh ip 网卡名" echo "按任意键关闭程序" read -n 1 -s -r -p "" exit 0 else pxeserver=$1 eth=$2 echo "PXE服务器主机地址为:$pxeserver,网卡为:$eth" fi ############# Part I Install All Debs ##################### echo "Installing all debs..." dpkg -i dnsmasq/*.deb if [ $? -eq 0 ]; then echo "installing dnsmasq successfully!" else echo "installing dnsmasq failed!" echo "installing dnsmasq failed!" > pxeset.log echo "Press any key to close this window..." read -n 1 -s -r -p "" exit 0 fi dpkg -i netboot/*.deb if [ $? -eq 0 ]; then echo "installing netboot successfully!" else echo "installing netboot failed!" echo "installing netboot failed!" >> pxeset.log echo "Press any key to close this window..." read -n 1 -s -r -p "" exit 0 fi dpkg -i nfs/*.deb if [ $? -eq 0 ]; then echo "installing nfs successfully!" else echo "installing nfs failed!" echo "installing nfs failed!" >> pxeset.log echo "Press any key to close this window..." read -n 1 -s -r -p "" exit 0 fi ############# Part II Setting Up NFS ##################### mkdir -p /var/nfs/uosamd64 echo '/var/nfs *(ro,sync,no_subtree_check)' |sudo tee -a /etc/exports systemctl restart nfs-kernel-server if [ $? -ne 0 ]; then echo "restart nfs-kernel-server failed!" echo "restart nfs-kernel-server failed!" >> pxeset.log echo "Press any key to close this window..." read -n 1 -s -r -p "" exit 0 fi mount *.iso tmpiso cp -r tmpiso/* /var/nfs/uosamd64 cp -r tmpiso/.disk /var/nfs/uosamd64 chown root:root -R /var/nfs/uosamd64 find /var/nfs/uosamd64 -type d -exec sudo chmod 755 {} \; ############# Part III Setting Up TFTP ##################### mkdir /var/tftp cp -r /usr/lib/debian-installer/images/10/amd64/text/debian-installer /var/tftp mv /var/tftp/debian-installer/amd64/grub/grub.cfg /var/tftp/debian-installer/amd64/grub/grub.cfg.bak echo " set menu_color_normal=white/black set menu_color_highlight=black/light-gray insmod gzio menuentry "Install uos" { set gfxpayload=keep linux /debian-installer/proamd64/live/vmlinuz-5.10.0 console=tty boot=live netboot=nfs nfsroot=$pxeserver:/var/nfs/uosamd64/ components union=overlay locales=zh_CN.UTF-8 livecd-installer -- initrd /debian-installer/proamd64/live/initrd-5.10.0.lz } menuentry "Try uos without installing" { set gfxpayload=keep linux /debian-installer/amd64/live/vmlinuz console=tty boot=live union=overlay quiet splash -- initrd /debian-installer/amd64/live/initrd.lz } " > /var/tftp/debian-installer/amd64/grub/grub.cfg mkdir /var/tftp/debian-installer/proamd64 cp -r tmpiso/live /var/tftp/debian-installer/proamd64 cp -r /var/tftp/debian-installer/amd64/grubx64.efi /var/tftp/ chown dnsmasq:nogroup /var/tftp -R if [ $? -ne 0 ]; then echo "chown tftp failed!" echo "chown tftp failed!" >> pxeset.log echo "Press any key to close this window..." read -n 1 -s -r -p "" exit 0 fi if [ $? -ne 0 ]; then echo "installing nfs failed!" echo "installing nfs failed!" >> pxeset.log echo "Press any key to close this window..." read -n 1 -s -r -p "" exit 0 fi ############# Part IV Setting Up DNSMASQ ##################### iprange=${pxeserver%.*} echo " listen-address=$pxeserver dhcp-boot=/debian-installer/amd64/bootnetx64.efi,boothost,$pxeserver interface=$eth bind-interfaces dhcp-range=$iprange.100,$iprange.200,1h dhcp-option=3,$pxeserver dhcp-option=6,$pxeserver dhcp-option=28,$iprange.255 enable-tftp tftp-root=/var/tftp " >> /etc/dnsmasq.conf systemctl restart dnsmasq if [ $? -ne 0 ]; then echo "restart dnsmasq failed!" echo "restart dnsmasq failed!" >> pxeset.log echo "Press any key to close this window..." read -n 1 -s -r -p "" exit 0 fi systemctl restart nfs-kernel-server systemctl restart dnsmasq systemctl enable nfs-kernel-server systemctl enable dnsmasq
06-03
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值