{"id":11976,"date":"2021-12-08T12:49:57","date_gmt":"2021-12-08T12:49:57","guid":{"rendered":"https:\/\/lgildv5i97.onrocket.site\/answers\/?post_type=question&#038;p=11976"},"modified":"2021-12-08T12:50:51","modified_gmt":"2021-12-08T12:50:51","slug":"serial-port-communication-with-batch-file","status":"publish","type":"question","link":"https:\/\/computing.net\/answers\/dos\/serial-port-communication-with-batch-file\/17196.html","title":{"rendered":"Serial Port Communication With Batch File"},"content":{"rendered":"<p>I currently have a program called serialterm.exe, which is designed to open a serial port an allows me to send data to a serial port. The program works well in Command line, but the minute I transfer the instructions to a batch file I have a few problems.<br \/>\nI need this batch file to enter in data, that the program will send to the serial port.<\/p>\n<p>My current code:<br \/>\nserialterm.exe com1 9600 acsii empty no C:\\test1.txt<br \/>\nSuccesfully opens the program and then waits for some form of user input.<br \/>\nIS their any way to put code into the batch file that would allow user input to be simulated, or allow me to send data to a serial port.<br \/>\nAll help well apreciated<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"iawp_total_views":17},"question-category":[60],"question_tags":[],"class_list":["post-11976","question","type-question","status-publish","hentry","question-category-dos"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question\/11976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question"}],"about":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/types\/question"}],"author":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/comments?post=11976"}],"wp:attachment":[{"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/media?parent=11976"}],"wp:term":[{"taxonomy":"question-category","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question-category?post=11976"},{"taxonomy":"question_tags","embeddable":true,"href":"https:\/\/computing.net\/answers\/wp-json\/wp\/v2\/question_tags?post=11976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}