Converting code help
Twilight_Angel
Posts: 11
Here is a code I created in JCreator to open up a program and then close it. Can any one help me convert the code so I can use it with the Javelin Stamp?
Post Edited (Twilight_Angel) : 5/4/2009 3:25:21 AM GMT
Post Edited (Twilight_Angel) : 5/4/2009 3:25:21 AM GMT
Comments
Can you please clarify what you want to do?
Is it a java program for your own computer? Or are you expecting to convert Outlook in Java, upload it in the Javalin, and have it running with no keyboard, no screen and 16Ko of memory? Or do you want the Javelin to start Outlook on your computer from outside?
JM
Really, all I need is to open up Outlook when the Boe-Bot receives a signal.
Post Edited By Moderator (Chris Savage (Parallax)) : 5/6/2009 3:19:20 PM GMT
Outlook is a Windows Micro$oft software running with (usually) an Intel processor. Unless you have a specific Javalin Outlook version, you will not be able to do so.
What you will need it the Javelin to send a message to a computer, which will monitor an RS-232 port, and which will open Outlook when he received a signal. But your Javelin will not be able to open Outlook itself.
So you will have to do something like:
Water monitor -> Javelin -> Computer.
JM
Post Edited By Moderator (Chris Savage (Parallax)) : 5/6/2009 3:19:29 PM GMT
Then on your computer side, using Javax.comm, monitor the comm port to read all what is coming. Don't forget to configure them both at the same speed, parity and stop.
Between your javelin and your computer, implement a protocol so both of them will "talk" the same language.
Post Edited By Moderator (Chris Savage (Parallax)) : 5/6/2009 3:19:36 PM GMT
www.java2s.com/Code/Java/Development-Class/PortSniffer.htm
If you look at the bottom of the page, it gives other codes to use that involve the serial port.
Post Edited By Moderator (Chris Savage (Parallax)) : 5/6/2009 3:19:42 PM GMT
Download it. install it properly, and run the samples. One is to detect the ports. You don't need to have anything runing to the ports to have them detected. But you need to close all the programs which are using the ports, like and Palm-like sync application, etc.
Post Edited By Moderator (Chris Savage (Parallax)) : 5/6/2009 3:19:48 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering