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, 10:59 AM
By Alan Shiers in forum Java
Last Post: 07-12-2002, 06:22 AM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center