Using SWING to create a GUI for PC to Microcontroller connection...

Hello,

I am currently undertaking a project task regarding the connection of a microcontroller (uC) to a host pc.Our main task now is to create a GUI that would display information stored on the uC.

I was just wondering if SWING will be able to accomodate the following:

1) The uC will be hooked up either through ETHERNET LAN cable or a USB WIFI adapter. The host pc running Java will have a GUI that would be able to locate this IP address of the uC and connect to it.

2) We have verified that a telnet connection from a pc to the uC works. We could successfully, get the necessary files needed from the uC.

3) The contents of the files we want are just a bunch of serial numbers. We have uC run a code and store the output into a file. This file would then be transfered to the host pc.

4) In the end, we want to send this data wirelessly, instead of using the LAN CABLE.

My question now is would SWING be a good option in implementing this GUI. I have taken a JAVA course a 2 yeasr ago so I am still familiar with some JAVA basics but I have not delved into the networking aspects of JAVA, which I do know it has.

I await your kind responses,

thanks.

[1217 byte] By [RyeProjecta] at [2007-11-26 18:42:50]
# 1
Swing is just for GUI's, presentation. I guess Swing is as good a choice as any for presentation. Do you not mean..is Java the correct language for these tasks? not swing but Java.
kikemellya at 2007-7-9 6:16:47 > top of Java-index,Java Essentials,New To Java...
# 2
I guess they both go hand in hand right, since java is used to program the SWING gui. Essentially, we were thinking of 3 choices, TCL/TK, LabView or Java(Swing).
RyeProjecta at 2007-7-9 6:16:47 > top of Java-index,Java Essentials,New To Java...
# 3

Well it's all Java but I still don't understand why your question is organised around Swing. Swing displays data, it has nothing to do with the logic that gets that data.

I don't know the other technologies you have mentioned, sorry. Java is widely used on the network so I can't see any problems using it.

kikemellya at 2007-7-9 6:16:47 > top of Java-index,Java Essentials,New To Java...
# 4

Hi,

By 礐 do you mean 礐/OS-II?

I don't know much about 礐/OS-II, I believe that you could

make a program for that processor that would listen for connections

on some ethernet port. Then your java program need to connect to that port

and fetch the data.

At the end of this article is a bit of info about sockets in 礐/OS-II.

http://www.hardware.dibe.unige.it/Software/DynamicC/DynCUsersManual/14ucos.htm

As pointed earlier, the GUI isn't your biggest problem.

kari-matti

kari-mattia at 2007-7-9 6:16:47 > top of Java-index,Java Essentials,New To Java...
# 5
uC = shortform of micro-controller.Anyways, thanks for the info. I believe, JAVA would be the better way for us when implementing the GUI.
RyeProjecta at 2007-7-9 6:16:47 > top of Java-index,Java Essentials,New To Java...