SRX

 View Only
last person joined: 2 days ago 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  Using USB as a serial input

    Posted 12-12-2011 04:39

    Hi all,

     

    It struck me today that using the USB port as a serial device could allow me to do external monitoring of things, so I had a look at the possibility of reading serial input from ttyU0.  I can't find any reference to it having been tried, but it seems it ought to be possible.

     

    If it turns out to be possible to receive remote serial data over USB, is it subsequently possible to log it or process it with a script?

     

    Obviously this is the realms of the unsupported, but having an IPSEC capable environmental monitoring box would be really good.

     

    Ben


    #monitoring
    #tty
    #console
    #serial
    #usb
    #text


  • 2.  RE: Using USB as a serial input
    Best Answer

    Posted 12-12-2011 16:49

    Part 1 answered:

     

    Looking in /var/log/messages for a FTDI,USB or UART shows 

     

    Dec 13 00:30:18 badgergateway /kernel: ucom0: FTDI FT232R USB UART, rev 2.00/6.00, addr 4

     

    From the cli, cat /dev/cuaU0 opens the serial port and shows me a stream of incoming serial data at 9.6kbps (It may be possible to negotiate higher since the UART is capable of this).  I am reading input data from an Arduino USB port.

     

    Part 2 testing to follow.

     

    Ben