How To send Data From Different Ports Using CMD? - DIY Arduino + Batch

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Kvc
Posts: 26
Joined: 13 Jun 2017 06:44
Location: India
Contact:

How To send Data From Different Ports Using CMD? - DIY Arduino + Batch

#1 Post by Kvc » 05 Sep 2017 08:46

I'm working on a custom industrial machine. And, I'm trying to use arduino instead of traditional PLC in the machine. And, As arduous uses various ports via USB cable to communicate between hardware and Computer. So, I wanted to know - if there is any way to send data from command line (CMD).

I read somewhere that it is possible through Python. But, wanted to run the machine via CMD / Batch file. As, I'm good in that - so, communication and UI will be quite friendly. :)

Thanks in advance. :wink: :wink: :wink: :wink:

Squashman
Expert
Posts: 4486
Joined: 23 Dec 2011 13:59

Re: How To send Data From Different Ports Using CMD? - DIY Arduino + Batch

#2 Post by Squashman » 05 Sep 2017 12:01

I am not sure if you can do it over USB.
In general you can do this.

Code: Select all

echo sometext >\\.\COM4

Post Reply