Faking an RS232 Serial Port

前端 未结 6 761
误落风尘
误落风尘 2020-11-27 10:10

I\'m developing a project that has a number of hardware sensors connecting to the deployment machine through RS232 serial ports.

But ... I\'m developing on a machine

6条回答
  •  不知归路
    2020-11-27 10:42

    Another alternative, even though the OP did not ask for it:

    There exist usb-to-serial adapters. Depending on the type of adapter, you may also need a nullmodem cable, too.

    They are extremely easy to use under linux, work under windows, too, if you have got working drivers installed.

    That way you can work directly with the sensors, and you do not have to try and emulate data. That way you are maybe even save from building an anemic system. (Due to your emulated data inputs not covering all cases, leading you to a brittle system.)

    Its often better to work with the real stuff.

提交回复
热议问题