串口通讯writefile输入命令,返回值仍然是输入的命令

串口通讯writefile输入命令,readfile( )返回值仍然是输入的命令,串口打开正常,这是怎么回事?