I often work on small electronic devices that communicates over a multi-drop half-duplex two-wires RS485 network.
I usually try to compile all the projects for the developing Windows machine (I use mingw as the compiler). Simulating and mimic the hardware in some way. The best simulation for the RS485 is a typical RS232 port with a RS232-RS485 attached (actually it is a very cheap USB-RS485 that is seen as a virtual COM port by Windows).
In this way, I can debug a device very fast on the developing Windows machine. The "virtual" device communicates with real devices on the bus.
Now I'd like to have two (or more) virtual devices running on the developing machine. Of course, they should communicate with each other
*and* with real devices connected to the RS232-RS485 converter.The idea is to use one *pair* virtual COM ports (com0com.sourceforge.net) for each virtual device *and* a real COM port for the real devices.
Now I'm searching a software running on Windows machine that opens a number of COM ports and forward every byte received from one port to all the other ports. In this way I can simulate a multi-drop bus. It should be a RS232 virtual hub.
+----+ +-----------+ +----+ | V1 |(COM7)(COM8)| RS232_HUB |(COM9)(COM10)| V2 | +----+ +-----------+ +----+ (COM1) RS232/RS485 ^ | v Real devicesV1 and V2 are virtual devices that opens COM7 and COM10 virtual COM ports. COM7 are virtually connected to COM8, COM10 to COM9 (virtual null-modem cables performed by com0com software).
RS232_HUB is a software that opens COM8, COM10 and COM1. It continually listens to those ports and forward each byte received to other ports.
Do you know some software that is similat to the idea of RS232 hub?