Background:\r\nThe work is to replace an old embedded web server with 3 serial ports connected to it.\r\nThere are some different web pages which now sends a page Id request when a page is loaded.\r\n\r\nPage()=1...5.\r\n\r\nThe server respondes with a cookie with the related information for each page.\r\nThe cookie is updated every second with new data for the current page.\r\n\r\n\r\n\r\nWork:\r\n\r\na)\r\nWrite a complete instruction on how to do a clean setup of a Win7 PC with a localhost web server.\r\n\r\nb)\r\nCreate a backend service which can request and read data from 3 serial ports.\r\nPort 1 = 38kbps 8N1\r\nPort 2 = 9600bps 8N1\r\nPort 3 = 9600bps 8N1\r\n\r\nc)\r\nPrefered language is Python but is not a must.\r\n\r\nd)\r\nCreate a event handler which upon the \"Page()\" request ask port 1 of data for \"Page 1...5\"\r\nand creates a new cookie on each second ping request to the serial port.\r\nThe request command to send is \"P=1\" for page 1 as an example.\r\nThe returned string can be copied directly to a cookie.\r\n\r\nThe setting of the Page ID when loading the page can be as you advice.\r\n\r\ne)\r\nThere will also be some command sent from a future popup window to the serial port.\r\nFor example the command \"O=234\" must be transfered from the popup window and down to the serial port 1.\r\n\r\nf) \r\nThere may also be some local session variables for javascriptvariables to set.\r\nThey will come on port 1 as \"ND=Y...N\" or \"F=Y...N\" etc.