I'm developing a program that sends a file from one computer to another between a RS232 serial port.

I can test it on the school computers just fine, but I would like to be able to test it at home. So I'm trying to connect 2 virtual machines between a virtual serial port in vmware fusion, but I don't understand how to configure it.

I've installed the 2 virtual machines and added a serial port to each one (in the settings). But the only available option is to name the file that the serial port will use. This name will be used how?

I'm working with the /dev/ttyS1 port, can I still use it normally, and somehow redirect the output to the file that was configured?

有帮助吗?

解决方案

So, it was easy. You have to use the same file in each virtual machine. When you try to save the same file on the second vm it warns you that the file already exists, just say you want to replace it. Go into the share settings of each virtual machine and add the folder where the file is stored on your computer, and give it read and write permissions. In my case is the same folder where I keep the vm files. Now I just have to open the file and exchange info between the 2 vm's. I had to comment a few things in my code (it's not a real serial port)but at least I can simulate it well enough.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top