how to i suspend a java program and listen to serial port signals?
Hi pple need ya help on this...
I am currently doing a micromouse project that involves java communicating with the physical micromouse via serial communication interface. the objective of the mouse is to explore a given maze with dynamic obstacles. the moves of how the mouse will proceed will be done by java. therefore there will be commands receiving and transmitting between the physical micromouse and the java program.
i've no problem doing the maze exploration algorithm and implementing serial communicating of transmitting and receiving(using actionevent to receive).
the problem i'm facing is how do i pause the algorithm/program and at that point of time, listen to the serial signal as the signal will determine which path the algorithm will proceed.
btw the algorithm is a recursive function.
hope you guys understand what im trying to get here.
thanks and have a nice day.
Do you know how to initialize and suspend a thread which can be awakened upon the arrival of an actionevent?
erm i dunno how.. please guide me...
There are many resources to help you learn about and implement threading. Start with
Last Post: 11-11-2005, 11:59 AM
By Alan Shiers in forum Java
Last Post: 07-12-2002, 07:22 AM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL