Help Me With This!

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Oct 2005
Posts: 11
Reputation: perpetual_dream is an unknown quantity at this point 
Solved Threads: 0
perpetual_dream perpetual_dream is offline Offline
Newbie Poster

Help Me With This!

 
0
  #1
Mar 19th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 259
Reputation: sam1 is an unknown quantity at this point 
Solved Threads: 1
sam1's Avatar
sam1 sam1 is offline Offline
Posting Whiz in Training

Re: Help Me With This!

 
0
  #2
Mar 19th, 2006
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:
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 11
Reputation: perpetual_dream is an unknown quantity at this point 
Solved Threads: 0
perpetual_dream perpetual_dream is offline Offline
Newbie Poster

Re: Help Me With This!

 
0
  #3
Mar 19th, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 259
Reputation: sam1 is an unknown quantity at this point 
Solved Threads: 1
sam1's Avatar
sam1 sam1 is offline Offline
Posting Whiz in Training

Re: Help Me With This!

 
0
  #4
Mar 19th, 2006
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:
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

Re: Help Me With This!

 
0
  #5
Mar 19th, 2006
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.
Reply With Quote Quick reply to this message  
Join Date: Oct 2005
Posts: 11
Reputation: perpetual_dream is an unknown quantity at this point 
Solved Threads: 0
perpetual_dream perpetual_dream is offline Offline
Newbie Poster

Re: Help Me With This!

 
0
  #6
Mar 19th, 2006
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....
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 233
Reputation: Lord Soth is an unknown quantity at this point 
Solved Threads: 4
Lord Soth's Avatar
Lord Soth Lord Soth is offline Offline
Posting Whiz in Training

Re: Help Me With This!

 
0
  #7
Mar 22nd, 2006
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
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 212
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Help Me With This!

 
0
  #8
Mar 22nd, 2006
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 6
Reputation: nsuleiman is an unknown quantity at this point 
Solved Threads: 0
nsuleiman nsuleiman is offline Offline
Newbie Poster

Re: Help Me With This!

 
0
  #9
May 4th, 2008
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

Originally Posted by Lord Soth View Post
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,241
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 491
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is offline Offline
Code tags enforcer

Re: Help Me With This!

 
0
  #10
May 4th, 2008
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
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)

LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Java Forum
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC