• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Interruptions from the serial port

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!
Im programming an app in Java with a Modem in the serial port.
I already know how to make the app read the messages that the modem sends. Ive also created a thread that after some time, it wakes up and looks if there are messages in the serial port.
BUT, I would be interested in generate an interruption (or an exception, i dont know which is the best choice) that would wake my thread up when there is an incomming message in the serial port from the modem.
That is, the app is asleep (there is no CPU time), and when the Modem sends a message to the serial port, the app would wake up automatically (the interruption will execute a method in the app, or would wake up a thread... i dont know)
Somebody could help me???
Really thank you!
 
There is no "i" in denial. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic