Download Final Project Report ()

Transcript
Development of Remote FPGA Lab and FPGA-based Web Browser
2.7.
Hardware Connector The Spartan-3 microcontroller board is accessed by website handler and
hence by controller component of the system via XML-RPC. This is a Remote
Procedure Call method that uses XML passed via HTTP as a transport. With it, a
client can call methods with parameters on a remote server and get back a response
with proper data.
The file ‘serXMLRPC.py” acts as a server and listens to responses and
requests from client “controllers.py” file. The connection between server and client
is implemented by calling xmlrpclib (XML-RPC library) methods “ServerProxy” in
the client code and “SimpleXMLRPCServer” on the server side. The host is defined
as “localhost” with port 2000 which is configured to be a connection to Spartan-3
microcontroller board. This is because hardware is connected to the same server as
controller file (i.e. localhost or Windows 2000 server) via port number 2000 as seen
on Figure 8 below.
Figure 8 - Connection to Hardware
--13--