#现在接收到com1口发来的数据需要将该数据加前缀$TXSQ然后发送给com2口要如何实现呀
打开COM2定义一个临时char buf【1204】sprintf(buf, "$TXSQ%s",com1_str);把buf内容写到com2