Reading COM port value and printing in textArea, which is inside the panel in java

I need to read the COM port, and the data should be displayed inside TextArea dynamically (data arrives every minute) that I created inside JPanel.

Thank you for your reply.

+1
source share
3 answers

Some conclusions:

+1
source

To read from the serial port, see the javacomm API here: http://java.sun.com/products/javacomm/

The User Guide contains additional information and sample code: http://java.sun.com/products/javacomm/reference/docs/API_users_guide_3.html

+1
source

For a multi-platform application, check out rxtx .

javax.comm not been actively developed for several years. The rxtx project has a compatible api, as well as a more feature-rich gnu API.

There are examples with source code in the Wiki.

0
source

Source: https://habr.com/ru/post/1315234/


All Articles