Virtual Serial Port (VSP V1)

Server

  • Reads data from the serial port
  • Writes a raw copy of data to a log file
  • Fulfills read requests to 1 client
  • Makes available to client all data since server started running.
  • Stops running when killed: - Don't run as official daemon, just as a regular process at present.
  • Reads "vspserver.conf" to get configuration details

    HOSTPORT=N
    DEVICE="/dev/DEVICE_NAME"
    SPEED=N
    LOGFILE="name"

Client

  • Opens connection to server
  • Reads data and writes to standard output until server indicates that no more data is available.
  • reads "vspclient.conf" to get configuration details

    HOSTIP=N.N.N.N
    HOSTPORT=N

Logistics

  • Due Mon, March 17, midnight (almost Tuesday)
  • Please call your files the following names:
    • The server code should be in "server.cpp"
    • The client code should be in "client.cpp"
    • The server config file is "vspserver.conf"
    • The client config file is "vspclient.conf"
  • You will be notified about the setup when we have a couple systems in the Dungeon set up to handle the data test. In the meantime, fake serial input using a file of your choice.