Anda di halaman 1dari 2

Collaboration

CAR SYSTEM

data

REMOTE DATABASE Apache Jakarta Tomcat Server 7.NavaidDBAppServer

6.NavaidDBApp (Java) data 5. SimpleSocketServer (Java)

Wireless link

data

8.Access Database 4. MEX file (Matlab's API)

3. MATLAB(Simulink)

2. DSPACE

1.Radar

3. MATLAB Matlab version 6.1 has very good mex compiler to compile the mex file that it uses as an API to a Sockets program (javaSendData.c). 3.1 javaSendData (double,double) function that sends data to the API 4. MEX File MEX file is Matlabs API to the external world javaSendData.c is the source code. Running the command mex javaSendData.c compiles it to javaSendData.dll. This c code is a socket client whose role is to connect to the socket server and transmit the radar data. 5. SimpleSocketServer

This has the role of setting up a listening socket. It is programmed in java. SimpleSocketServer.java is the source code. It sets up a listening socket on port 6000. 6. NavaidDBApp NavaidDBApp.java is a java client to a servlet. The Client requests a session with the servlet via HTTP tunnelling. 7. NavaidDbAppServer NavaidDbAppServer.java is a java servlet running in a Apache Jakarta TomCat application server. This server receives the data and sends it to MS Access Database. 8. MS Access Database 8.1 Microsoft Access Database. The database used to store the radar data. It is accessed through its ODBC driver via a JDBC-ODBC bridge from the Servlet in 7.

5.1.1 SimpleSocketServer- Class Diagram SimpleSocketServer


init() getDataArray(String Sdata) parseData(String Sdata) send2DB(double range, double time) runServer()

NavaidDbApp
initialize() setData(String sRange, String sTime) setDataOutBuffer(ByteArrayOutputStream b) setupURL(string sURL) sendData(ByteArrayOutputStream buf)

Anda mungkin juga menyukai