| | |
Help Me With This!
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Oct 2005
Posts: 11
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Oct 2005
Posts: 11
Reputation:
Solved Threads: 0
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
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
•
•
Join Date: Jun 2004
Posts: 2,108
Reputation:
Solved Threads: 18
•
•
•
•
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.
If you are a total '''''newb''''' like you said you were, then take a year to learn what you need to do first.
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
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
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.
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.
•
•
Join Date: Apr 2008
Posts: 6
Reputation:
Solved Threads: 0
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
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
•
•
•
•
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
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
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Other Threads in the Java Forum
- Previous Thread: help on GUI developer
- Next Thread: JButtons require a width to support text?
| Thread Tools | Search this Thread |
Tag cloud for Java
addressbook android api apple applet application arguments array arrays automation awt binary bluetooth button calculator chat class classes client code columns component converter database draw eclipse error errors event exception file fractal ftp game givemetehcodez graphics gridlayout gui helpwithhomework html ide image inetaddress input integer invokingapacheantprogrammatically j2me java javaprojects jme jmf jni jpanel julia link linux list loop map method methods midlethttpconnection mobile netbeans newbie number object objects openjavafx oracle php print problem program programming project projects recursion rim scanner screen server set signing size smart sms socket sort sql storm string support swing test threads time tree webservices windows






