当前位置: 代码迷 >> 综合 >> virtual serial com setting
  详细解决方案

virtual serial com setting

热度:3   发布时间:2024-02-01 10:40:10.0

 

1、enviroment

   a.host -----win7

   b virtul tool---vxbox

   c .virtul os---ubuntu

2、config 

 a vxbox-setting

    add->com->select pipe type

      a) name \\.pipe\myvxboxcom

     b)the end is the server

     c)the end is the client

  3、serical open

    a) win7

             putty ->setting

               name : \\.pipe\myvxboxcom

    b) ubuntu

       ---> dmesg | grep tty find com dev name:

        ttyS0

        -->stty -F /dev/ttyS0-a 

       --->echo -e -en "hello com" > /dev/ttyS0

     hexdump -C -n 5 /dev/ttyS0 // show the front n bytes ,then exit;

     

  

  相关解决方案