How to create a simulated a serial device

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I am writing code for a robot that is too big and too expensive to sit on my desk. And, the ones in house are in heavy demand for many activities (e.g. training service and install personnel, QA, etc) so i cannot simply claim one for my development purposes.



The robots contain a few devices connected to the kiosk computer via rs-232 serial communications. To facilitate my development and avoid taking up too much time on a real robot I'd like to simulate those serial devices.



I have found the mknod command which lets me create dummy devices and stops the first level of complaints during startup. However, I am noticing that at least one device is expecting DTR = low, but finding DTR = high. So I need to do more than just create my dummy devices.



I have also found tty0tty which may be useful in creating the simulated devices I need, but I am not entirely sure.



I am continuing to do more research but thought I would ask if anyone else has done something like this and is willing to share their experience!



My basic requirements are that the simulator read commands coming for teh robot and return expected replies.









share







New contributor




cptully is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.























    up vote
    0
    down vote

    favorite












    I am writing code for a robot that is too big and too expensive to sit on my desk. And, the ones in house are in heavy demand for many activities (e.g. training service and install personnel, QA, etc) so i cannot simply claim one for my development purposes.



    The robots contain a few devices connected to the kiosk computer via rs-232 serial communications. To facilitate my development and avoid taking up too much time on a real robot I'd like to simulate those serial devices.



    I have found the mknod command which lets me create dummy devices and stops the first level of complaints during startup. However, I am noticing that at least one device is expecting DTR = low, but finding DTR = high. So I need to do more than just create my dummy devices.



    I have also found tty0tty which may be useful in creating the simulated devices I need, but I am not entirely sure.



    I am continuing to do more research but thought I would ask if anyone else has done something like this and is willing to share their experience!



    My basic requirements are that the simulator read commands coming for teh robot and return expected replies.









    share







    New contributor




    cptully is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am writing code for a robot that is too big and too expensive to sit on my desk. And, the ones in house are in heavy demand for many activities (e.g. training service and install personnel, QA, etc) so i cannot simply claim one for my development purposes.



      The robots contain a few devices connected to the kiosk computer via rs-232 serial communications. To facilitate my development and avoid taking up too much time on a real robot I'd like to simulate those serial devices.



      I have found the mknod command which lets me create dummy devices and stops the first level of complaints during startup. However, I am noticing that at least one device is expecting DTR = low, but finding DTR = high. So I need to do more than just create my dummy devices.



      I have also found tty0tty which may be useful in creating the simulated devices I need, but I am not entirely sure.



      I am continuing to do more research but thought I would ask if anyone else has done something like this and is willing to share their experience!



      My basic requirements are that the simulator read commands coming for teh robot and return expected replies.









      share







      New contributor




      cptully is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      I am writing code for a robot that is too big and too expensive to sit on my desk. And, the ones in house are in heavy demand for many activities (e.g. training service and install personnel, QA, etc) so i cannot simply claim one for my development purposes.



      The robots contain a few devices connected to the kiosk computer via rs-232 serial communications. To facilitate my development and avoid taking up too much time on a real robot I'd like to simulate those serial devices.



      I have found the mknod command which lets me create dummy devices and stops the first level of complaints during startup. However, I am noticing that at least one device is expecting DTR = low, but finding DTR = high. So I need to do more than just create my dummy devices.



      I have also found tty0tty which may be useful in creating the simulated devices I need, but I am not entirely sure.



      I am continuing to do more research but thought I would ask if anyone else has done something like this and is willing to share their experience!



      My basic requirements are that the simulator read commands coming for teh robot and return expected replies.







      debian serial-port





      share







      New contributor




      cptully is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      cptully is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      cptully is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 mins ago









      cptully

      11




      11




      New contributor




      cptully is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      cptully is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      cptully is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          cptully is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476127%2fhow-to-create-a-simulated-a-serial-device%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          cptully is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          cptully is a new contributor. Be nice, and check out our Code of Conduct.












          cptully is a new contributor. Be nice, and check out our Code of Conduct.











          cptully is a new contributor. Be nice, and check out our Code of Conduct.













           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f476127%2fhow-to-create-a-simulated-a-serial-device%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?