Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch.embedded > #28876

Re: Multidrop bus on Windows

From David Brown <david.brown@hesbynett.no>
Newsgroups comp.arch.embedded
Subject Re: Multidrop bus on Windows
Date 2019-10-02 12:14 +0200
Organization A noiseless patient Spider
Message-ID <qn1ta9$ook$2@dont-email.me> (permalink)
References <qmvm98$fdc$1@dont-email.me> <qn06qo$su1$1@dont-email.me> <qn1i4t$q1j$1@dont-email.me>

Show all headers | View raw


On 02/10/2019 09:03, pozz wrote:
> Il 01/10/2019 20:44, David Brown ha scritto:
>> On 01/10/2019 16:02, pozz wrote:
>>> I often work on embedded firmware for MCUs connected by a multidrop
>>> master/slave RS485 bus.
>>>
>>> Moreover I try to compile the same code with mingw compiler, simulating
>>> the hw. Of course, I simulate the serial bus connection (UART) by using
>>> a COM port on Windows.
>>> This allows me to speed-up testing, debugging and so on.
>>>
>>> So I can launch many simulators of the same device or different devices.
>>> If they are two, I can use null-modem emulator (such as com0com) to make
>>> a point-to-point connection between the two devices.
>>>
>>> What I'm trying to do is to launch three o more device simulators, each
>>> opening a virtual serial port, and let them talk together as they are on
>>> a real RS485 bus.
>>>
>>> What I'm searching is a software that retransmit all data received on
>>> one serial port to all other serial ports under control.
>>>
>>> Device 1 <-> COM11 <- null-modem emulator -> COM12
>>> Device 2 <-> COM13 <- null-modem emulator -> COM14
>>> Device 3 <-> COM15 <- null-modem emulator -> COM16
>>>
>>> This bus simulator should open COM12, COM14 and COM16 and retransmits
>>> all data received on one port to all other ports.
>>>
>>> I know I can write this myself, however I'm sure someone already wrote
>>> something similar to reuse.
>>>
>>
>> It should be about a two dozen lines of Python with pyserial.
> 
> I know.
> 
> 
>> But surely your PC simulators don't have to use serial ports?  They can
>> communicate by named pipes, TCP/IP connects, or whatever.
>>
> 
> I sometimes connect a simulator to a real device, so I need to use a
> real COM port.

Can you abstract it a bit in the code?  Your simulator code could use
pipes or network sockets, and you can have a single extra program that
can act as a hub between these sockets and one real RS-485 serial port.
 It just seems inefficient to have lots of serial ports on a computer
with null modem cables connecting them together.

Back to comp.arch.embedded | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Multidrop bus on Windows pozz <pozzugno@gmail.com> - 2019-10-01 16:02 +0200
  Re: Multidrop bus on Windows Dave Nadler <drn@nadler.com> - 2019-10-01 08:01 -0700
    Re: Multidrop bus on Windows pozz <pozzugno@gmail.com> - 2019-10-02 09:04 +0200
      Re: Multidrop bus on Windows upsidedown@downunder.com - 2019-10-02 11:33 +0300
        Re: Multidrop bus on Windows David Brown <david.brown@hesbynett.no> - 2019-10-02 12:12 +0200
          Re: Multidrop bus on Windows Dave Nadler <drn@nadler.com> - 2019-10-02 04:59 -0700
          Re: Multidrop bus on Windows upsidedown@downunder.com - 2019-10-03 01:11 +0300
            Re: Multidrop bus on Windows Rick C <gnuarm.deletethisbit@gmail.com> - 2019-10-02 19:06 -0700
              Re: Multidrop bus on Windows upsidedown@downunder.com - 2019-10-03 07:39 +0300
                Re: Multidrop bus on Windows Rick C <gnuarm.deletethisbit@gmail.com> - 2019-10-02 22:16 -0700
                Re: Multidrop bus on Windows upsidedown@downunder.com - 2019-10-03 09:10 +0300
                Re: Multidrop bus on Windows Rick C <gnuarm.deletethisbit@gmail.com> - 2019-10-03 07:53 -0700
                Re: Multidrop bus on Windows David Brown <david.brown@hesbynett.no> - 2019-10-04 08:54 +0200
                Re: Multidrop bus on Windows upsidedown@downunder.com - 2019-10-04 12:44 +0300
                Re: Multidrop bus on Windows David Brown <david.brown@hesbynett.no> - 2019-10-04 13:00 +0200
                Re: Multidrop bus on Windows upsidedown@downunder.com - 2019-10-04 15:54 +0300
                Re: Multidrop bus on Windows David Brown <david.brown@hesbynett.no> - 2019-10-04 15:13 +0200
                Re: Multidrop bus on Windows upsidedown@downunder.com - 2019-10-04 16:40 +0300
                Re: Multidrop bus on Windows David Brown <david.brown@hesbynett.no> - 2019-10-04 16:49 +0200
                Re: Multidrop bus on Windows Grant Edwards <invalid@invalid.invalid> - 2019-10-04 16:14 +0000
                Re: Multidrop bus on Windows upsidedown@downunder.com - 2019-10-05 14:24 +0300
              Re: Multidrop bus on Windows David Brown <david.brown@hesbynett.no> - 2019-10-03 09:35 +0200
                Re: Multidrop bus on Windows Grant Edwards <invalid@invalid.invalid> - 2019-10-03 14:08 +0000
                Re: Multidrop bus on Windows David Brown <david.brown@hesbynett.no> - 2019-10-04 08:59 +0200
                Re: Multidrop bus on Windows Rick C <gnuarm.deletethisbit@gmail.com> - 2019-10-03 08:04 -0700
                Re: Multidrop bus on Windows David Brown <david.brown@hesbynett.no> - 2019-10-04 09:43 +0200
                Re: Multidrop bus on Windows Rick C <gnuarm.deletethisbit@gmail.com> - 2019-10-04 03:16 -0700
                Re: Multidrop bus on Windows David Brown <david.brown@hesbynett.no> - 2019-10-04 13:10 +0200
              Re: Multidrop bus on Windows Stef <stef33d@yahooI-N-V-A-L-I-D.com.invalid> - 2019-10-03 22:12 +0200
            Re: Multidrop bus on Windows David Brown <david.brown@hesbynett.no> - 2019-10-03 09:19 +0200
              Re: Multidrop bus on Windows upsidedown@downunder.com - 2019-10-03 10:59 +0300
                Re: Multidrop bus on Windows David Brown <david.brown@hesbynett.no> - 2019-10-03 11:12 +0200
                Re: Multidrop bus on Windows upsidedown@downunder.com - 2019-10-03 20:15 +0300
                Re: Multidrop bus on Windows David Brown <david.brown@hesbynett.no> - 2019-10-04 09:45 +0200
                Re: Multidrop bus on Windows upsidedown@downunder.com - 2019-10-04 12:58 +0300
              Re: Multidrop bus on Windows Grant Edwards <invalid@invalid.invalid> - 2019-10-03 14:04 +0000
                Re: Multidrop bus on Windows David Brown <david.brown@hesbynett.no> - 2019-10-04 09:47 +0200
  Re: Multidrop bus on Windows David Brown <david.brown@hesbynett.no> - 2019-10-01 20:44 +0200
    Re: Multidrop bus on Windows pozz <pozzugno@gmail.com> - 2019-10-02 09:03 +0200
      Re: Multidrop bus on Windows David Brown <david.brown@hesbynett.no> - 2019-10-02 12:14 +0200

csiph-web