title: tera term xmodemsend command
body: <p>I've been using Tera Term to update the firmware on transmitters via a serial port, but the process is fairly menial and user input intensive. I'm trying to write a macro that:</p>
  
  <p>1) connects to the user specified serial port (check)</p>
  
  <p>2) Sends the xmodem receive command to the transmitter (check)</p>
  
  <p>3) uses xmodemsend to send the new firmware file to the transmitter (no_check)</p>
  
  <p>4) repeats when the user clicks repeat (kind of check)</p>
  
  <p>Basically, my question is how exactly the xmodemsend command should be implemented. I read Tera Terms index file that has the list and explanation of all the commands, but for whatever reason it's not working</p>
  
  <p>The firmware file is in the TeraTerm folder, and I'm using it like:</p>
  
  <pre><code>;... other code stuff...
  wait 'now.' ;waits for last word of the transmitter's response to the xmodem receive signal
  
  xmodemsend 'filename.bin' 1
  ;format: command 'filename' checksum
  
  wait 'power!' ;waits for last word of transmitter's response to file
  
  
  ;... other code stuff...
  </code></pre>
  
  <p>The macro is getting hung up on the line 'wait 'power!'', but I'm using a program to monitor the serial port's data transfer and after the transmitter replies to the xmodem receive signal, the computer never sends the file. </p>
  
  <p>Any advice on what I could be doing wrong?</p>