找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
查看: 25282|回复: 6

[文件操作] 批处理如何读取打印机中的串口数据?

[复制链接]
发表于 2018-3-4 17:22:28 | 显示全部楼层 |阅读模式
如何把串口数据读取到TXT文件中,我们需要读取打印机中的串口数据
 楼主| 发表于 2018-3-4 17:23:35 | 显示全部楼层
把外接的设备通过电脑的串口读取数据到本地硬盘中
发表于 2018-3-4 21:35:17 | 显示全部楼层
plink.exe (a command-line interface to the PuTTY back ends)

https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
Options:
  -V        print version information and exit
  -pgpfp    print PGP key fingerprints and exit
  -v        show verbose messages
  -load sessname  Load settings from saved session
  -ssh -telnet -rlogin -raw -serial
            force use of a particular protocol

  -P port   connect to specified port
  -l user   connect with specified username
  -batch    disable all interactive prompts
  -proxycmd command
            use 'command' as local proxy
  -sercfg configuration-string (e.g. 19200,8,n,1,X)
            Specify the serial configuration (serial only)
The following options only apply to SSH connections:
  -pw passw login with specified password
  -D [listen-IP:]listen-port
            Dynamic SOCKS-based port forwarding
  -L [listen-IP:]listen-port:host:port
            Forward local port to remote address
  -R [listen-IP:]listen-port:host:port
            Forward remote port to local address
  -X -x     enable / disable X11 forwarding
  -A -a     enable / disable agent forwarding
  -t -T     enable / disable pty allocation
  -1 -2     force use of particular protocol version
  -4 -6     force use of IPv4 or IPv6
  -C        enable compression
  -i key    private key file for user authentication
  -noagent  disable use of Pageant
  -agent    enable use of Pageant
  -hostkey aa:bb:cc:...
            manually specify a host key (may be repeated)
  -m file   read remote command(s) from file
  -s        remote command is an SSH subsystem (SSH-2 only)
  -N        don't start a shell/command (SSH-2 only)
  -nc host:port
            open tunnel in place of session (SSH-2 only)
  -sshlog file
  -sshrawlog file
            log protocol details to a file
  -shareexists
            test whether a connection-sharing upstream exists
 楼主| 发表于 2018-3-4 23:44:36 | 显示全部楼层
你好,谢谢你的回复,我比较笨不明白什么用,请帮忙详细解析
 楼主| 发表于 2018-3-5 23:01:31 | 显示全部楼层
请高手帮忙解答
 楼主| 发表于 2018-3-6 22:22:59 | 显示全部楼层
请各位帮忙看看
 楼主| 发表于 2022-10-19 22:25:19 | 显示全部楼层
各位大佬,请教上面的问题,如何解决。串口读取到的数据记录到指定的D:\data.txt文件中,当有读取到新的串口数据时,自动覆盖D:\data.txt里面的内容,并把D:\data.txt旧的内容移动到D:\databackup.txt中做备份处理
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-3-19 13:12 , Processed in 0.018644 second(s), 8 queries , File On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表