how to i suspend a java program and listen to serial port signals?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: how to i suspend a java program and listen to serial port signals?

  1. #1
    Join Date
    Aug 2005
    Posts
    9

    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.

  2. #2
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    Do you know how to initialize and suspend a thread which can be awakened upon the arrival of an actionevent?

  3. #3
    Join Date
    Aug 2005
    Posts
    9
    erm i dunno how.. please guide me...

  4. #4
    Join Date
    Dec 2004
    Location
    San Bernardino County, California
    Posts
    1,468
    There are many resources to help you learn about and implement threading. Start with

    http://java.sun.com/docs/books/tutor...ncy/index.html

Similar Threads

  1. Replies: 0
    Last Post: 11-11-2005, 11:59 AM
  2. Java Sockets and Telnet
    By Alan Shiers in forum Java
    Replies: 1
    Last Post: 07-12-2002, 07:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center