简体   繁体   English

Teraterm Sendln问题,它无法发送完整命令

[英]Teraterm Sendln issue, it cannot send the full command

I need help when debugging teraterm script. 调试Teraterm脚本时需要帮助。 The simple codes shown below: 如下所示的简单代码:

connect "/c=20 /baud=115200"
pause(8)
cmd = 'r 10314 1'
sendln cmd 
pause(3)
closet

Actually only send command of "r 10314 1" . 实际上只发送命令"r 10314 1" What I saw that this command is issued successfully, but in Teraterm window, only the command shows: r 1 . 我看到该命令已成功发出,但是在Teraterm窗口中,仅该命令显示: r 1 Why sendln doesn't send all the commands? 为什么sendln不发送所有命令? Appreciate. 欣赏。

Have you checked that both devices can handle that fast of a baud rate? 您是否检查过这两种设备都可以处理这么快的波特率? Instead of 115200, have you tried a slower speed? 而不是115200,您是否尝试过降低速度?

The code looks good (as in you are only sending one string with the same apostrophe on both sides, this can also be achieved with two double quotes) and waiting 3 seconds after, there should be no problem; 代码看起来不错(因为您只发送了一个带有相同撇号的字符串,也可以用两个双引号来实现)并等待3秒钟,这应该没问题; I would try with lower baud rates to see if you aren't trying to send the data faster than capable. 我会尝试使用较低的波特率,以查看您发送数据的速度是否超过了正常速度。

Here's some things to look at that can maybe help: https://ttssh2.osdn.jp/manual/en/macro/syntax/formats.html https://learn.sparkfun.com/tutorials/serial-communication/all 以下是一些可能会有所帮助的内容: https : //ttssh2.osdn.jp/manual/zh/macro/syntax/formats.html https://learn.sparkfun.com/tutorials/serial-communication/all

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM