943,865 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2449
  • Java RSS
Mar 19th, 2006
0

Help Me With This!

Expand Post »
Hey,
Am a total newbie to java. What am trying to do is to control a robot through network. I need to send commands between a laptop(client) and a PDA (server), it is describe in the pic HERE .I have a few questions...
1- The java used to program the PDA is the same java using to program a desktop application? Is the runtime enviornment for Palm OS is freely available?
2- What are the tools that I can use to build the interface in Java?What are the development enviornment that I need?
3- Can u give me a few links on network programing in java and good tutorials about java basics that I need to build an interface and to send and recieve the commands THROUGH TCP/IP PROTOCOL.
I know the basic program skills, and am a good ASP programer but I need to implement this in java. I dont have experience in desktop applications.
Thanks in advance
Reputation Points: 10
Solved Threads: 0
Newbie Poster
perpetual_dream is offline Offline
11 posts
since Oct 2005
Mar 19th, 2006
0

Re: Help Me With This!

hi,

As you said you are a total newbie i dont think you should be doing this.....
people do this sort of stuff when they fully understand the networking in java and other parts of java........ :mrgreen:
Reputation Points: 10
Solved Threads: 1
Posting Whiz
sam1 is offline Offline
300 posts
since Nov 2004
Mar 19th, 2006
0

Re: Help Me With This!

Hey,
Am not that stupid....
I know the algorithm about how the programming should work...

At the server side (PDA) that will serve the client (computer) requests:
1. A socket is opened and the machine listens for all clients at a particular port number.
2. Simultaneously the serial port of the device is also opened.
3. The data input stream created by the socket is connected all the way to the serial port. So any data stream that the socket receives is immediately sent out of the serial port. This is done a string at a time.
4. Once the data string is sent out of the serial port the machine is ready to receive another string of data from the client.
5. The steps 3 and 4 are repeated till the connection is closed by the client.
6. Once the connection is closed, the machine stops listening on the port number and
Simultaneously closes the serial port.
To start a new connection the server program will have to execute again

Programming the client –the desktop computer in order to send commands for the motor over the network involved the following steps:
1. Open a socket by creating a socket object
2. Create an output stream consisting of the commands for the control board.
3. Send the input stream over the network.
4. Close the socket when the application is completed.
The client program has the IP address of the handheld device. This program runs on the desktop computer. . To make a connection request, the client tries to rendezvous with the server on the handheld device and port.

But I need more resources on the whole issue....Ive got some time, 3months to implement it.... Help Guys
Reputation Points: 10
Solved Threads: 0
Newbie Poster
perpetual_dream is offline Offline
11 posts
since Oct 2005
Mar 19th, 2006
0

Re: Help Me With This!

hi,

I didn't say you were stupid and didn't mean to. Just thought if you are newbie as you said than you should not be doing this :mrgreen:
Reputation Points: 10
Solved Threads: 1
Posting Whiz
sam1 is offline Offline
300 posts
since Nov 2004
Mar 19th, 2006
0

Re: Help Me With This!

Quote originally posted by perpetual_dream ...
Hey,
Am not that stupid....
I know the algorithm about how the programming should work...

At the server side (PDA) that will serve the client (computer) requests:
1. A socket is opened and the machine listens for all clients at a particular port number.
2. Simultaneously the serial port of the device is also opened.
3. The data input stream created by the socket is connected all the way to the serial port. So any data stream that the socket receives is immediately sent out of the serial port. This is done a string at a time.
4. Once the data string is sent out of the serial port the machine is ready to receive another string of data from the client.
5. The steps 3 and 4 are repeated till the connection is closed by the client.
6. Once the connection is closed, the machine stops listening on the port number and
Simultaneously closes the serial port.
To start a new connection the server program will have to execute again

Programming the client –the desktop computer in order to send commands for the motor over the network involved the following steps:
1. Open a socket by creating a socket object
2. Create an output stream consisting of the commands for the control board.
3. Send the input stream over the network.
4. Close the socket when the application is completed.
The client program has the IP address of the handheld device. This program runs on the desktop computer. . To make a connection request, the client tries to rendezvous with the server on the handheld device and port.
Did you just answer your own question?

If you are a total '''''newb''''' like you said you were, then take a year to learn what you need to do first.
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004
Mar 19th, 2006
0

Re: Help Me With This!

am a newbie when it comes to java and not to programming as a whole I know the concepts very well, I need guidance on where to start 4rm.... am not trying 2play smart here or anything but i dont think it's mission impossible with some hard working 4rm me and help when I need it....
Reputation Points: 10
Solved Threads: 0
Newbie Poster
perpetual_dream is offline Offline
11 posts
since Oct 2005
Mar 22nd, 2006
0

Re: Help Me With This!

Hi,

1-There are 2 versions (actually 3 with J2EE) of Java J2SE (standart) and J2ME (mobile). J2ME w/ MIDP profile is mostly used on cell phones for games. It all depends on the PalmOS version and the capabilities of your device (which Palm model are you going to use?). Palm os natively supports J2ME for sometime depening on your version.(http://www.palmos.com/dev/tech/java/developers.html) but there are other proprietary Java VM like implementations w/ J2SE compatibility. Check Waba (http://www.wabasoft.com), SuperWaba (http://superwaba.sourceforge.net/cgi...pportedDevices http://www.superwaba.com) and EweVm (http://www.ewesoft.com) as J2ME might not cut your needs.
2-Those sites above explain you all the IDE an GUI options you have for J2ME and J2SE.
3-Same as 2.

If you were using a Microsoft PocketPC device. I would strongly suggest using C# with .Net Compact Framework for portability and interoperability.

Loren Soth
Reputation Points: 28
Solved Threads: 4
Posting Whiz in Training
Lord Soth is offline Offline
233 posts
since Mar 2006
Mar 22nd, 2006
0

Re: Help Me With This!

you might not be stupid, but your childish use of language makes you look incredibly stupid.

Listen to advise, learn the language and libraries before trying something complex. You sound just like the many kids who never programmed in their lifes and run into game programming boards with their questions on how they can create the next Doom beating game in a week.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
May 4th, 2008
0

Re: Help Me With This!

Hi there
I am also doing a project on PDA for PalmOS. As far as I know J2ME, SuperWaba, waba are the Java and related to java tools. And also you can get the free development environment for PalmOS in the Internet. I forgot the links.
I am currently is using SuperWaba because J2ME could not support Unicode in order to display my native language characters.
Cheers

Click to Expand / Collapse  Quote originally posted by Lord Soth ...
Hi,

1-There are 2 versions (actually 3 with J2EE) of Java J2SE (standart) and J2ME (mobile). J2ME w/ MIDP profile is mostly used on cell phones for games. It all depends on the PalmOS version and the capabilities of your device (which Palm model are you going to use?). Palm os natively supports J2ME for sometime depening on your version.(http://www.palmos.com/dev/tech/java/developers.html) but there are other proprietary Java VM like implementations w/ J2SE compatibility. Check Waba (http://www.wabasoft.com), SuperWaba (http://superwaba.sourceforge.net/cgi...pportedDevices http://www.superwaba.com) and EweVm (http://www.ewesoft.com) as J2ME might not cut your needs.
2-Those sites above explain you all the IDE an GUI options you have for J2ME and J2SE.
3-Same as 2.

If you were using a Microsoft PocketPC device. I would strongly suggest using C# with .Net Compact Framework for portability and interoperability.

Loren Soth
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nsuleiman is offline Offline
6 posts
since Apr 2008
May 4th, 2008
0

Re: Help Me With This!

Ehmm, didn't that post started 2 years ago and same time there was last post? Beside that, since then there was a change in terms of Java development for mobile devices, more tools are available and larger number of JSRs is there to use, which many of them gone be included in in new release of JavaMicroedition very soon
Moderator
Featured Poster
Reputation Points: 2786
Solved Threads: 873
Code tags enforcer
peter_budo is offline Offline
6,656 posts
since Dec 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: help on GUI developer
Next Thread in Java Forum Timeline: JButtons require a width to support text?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC