SlideShare a Scribd company logo
Presentación rs232 java
Presentación rs232 java
Presentación rs232 java
The concept of Write-once-run-anywhere
(known as the Platform independent) is one of
the important key feature of java language that
makes java as the most powerful language. Not
even a single language is idle to this feature
but java is more closer to this feature. The
programs written on one platform can run on
any platform provided the platform must have
the JVM.
There are various features that makes the java as a
simple language. Programs are easy to write and
debug because java does not use the pointers
explicitly. It is much harder to write the java programs
that can crash the system but we can not say about
the other programming languages. Java provides the
bug free system due to the strong memory
management. It also has the automatic memory
allocation and deallocation system.
Java has the strong memory allocation and automatic
garbage collection mechanism. It provides the
powerful exception handling and type checking
mechanism as compare to other programming
languages. Compiler checks the program whether
there any error and interpreter checks any run time
error and makes the system secure from crash. All of
the above features makes the java language robust.
To be an Object Oriented language, any language must follow at least the four characteristics.
•Inheritance : It is the process of creating the new classes and using the behavior of the
existing classes by extending them just to reuse the existing code and adding the additional
features as needed.
•Encapsulation: It is the mechanism of combining the information and providing the
abstraction.
•Polymorphism: As the name suggest one name multiple form, Polymorphism is the way of
providing the different functionality by the functions having the same name based on the
signatures of the methods.
•Dynamic binding :Sometimes we don't have the knowledge of objects about their specific
types while writing our code. It is the way of providing the maximum functionality to a
program about the specific type at runtime.
As the languages like Objective C, C++ fulfills the above four characteristics yet they are not
fully object oriented languages because they are structured as well as object oriented
languages. But in case of java, it is a fully Object Oriented language because object is at the
outer most level of data structure in java. No stand alone methods, constants, and variables
are there in java. Everything in java is object even the primitive data types can also be
converted into object by using the wrapper class.
Distributed
The widely used protocols like HTTP and FTP are developed in java. Internet programmers can
call functions on these protocols and can get access the files from any remote machine on the
internet rather than writing codes on their local system.
Portable
The feature Write-once-run-anywhere makes the java language portable provided that the
system must have interpreter for the JVM. Java also have the standard data size irrespective of
operating system or the processor. These features makes the java as a portable language.
Dynamic
While executing the java program the user can get the required files dynamically from a local
drive or from a computer thousands of miles away from the user just by connecting with the
Internet.
Secure
Java does not use memory pointers explicitly. All the programs in java are run under an area
known as the sand box. Security manager determines the accessibility options of a class like reading
and writing a file to the local disk. Java uses the public key encryption system to allow the java
applications to transmit over the internet in the secure encrypted form. The bytecode Verifier
checks the classes after loading.
Performance
Java uses native code usage, and lightweight process called threads. In the beginning
interpretation of bytecode resulted the performance slow but the advance version of JVM uses the
adaptive and just in time compilation technique that improves the performance.
The term architectural neutral seems to be weird, but yes Java is an
architectural neutral language as well. The growing popularity of networks
makes developers think distributed. In the world of network it is essential that
the applications must be able to migrate easily to different computer systems.
Not only to computer systems but to a wide variety of hardware architecture
and Operating system architectures as well. The Java compiler does this by
generating byte code instructions, to be easily interpreted on any machine and
to be easily translated into native machine code on the fly. The compiler
generates an architecture-neutral object file format to enable a Java application
to execute anywhere on the network and then the compiled code is executed
on many processors, given the presence of the Java runtime system. Hence Java
was designed to support applications on network. This feature of Java has
thrived the programming language.
Windows XP / Vista.
JDK 6 or higher.
Eclipse IDE.
Bookstores Giovynet Driver
Two serial ports.
Hyperterminal.
1. Download handling libraries port.
2. Create java project.
3. Attach library for handling serial ports.
4. Create class to write code.
5. Write and execute code for free ports.
6. Write and execute code to transmit data between ports available.
Presentación rs232 java
Presentación rs232 java
Follow these steps:
1. Open the folder GiovynetDriver /
2. Copy the files NativeLibraries /
libSerialPort.dll, NativeLibraries
/libSOSerialPort.so, and SerialPort.jar.
3. In Eclipse, click on Window.
4. Click on Show View.
5. Click on Navigator.
6. Right-click the project node (RS232).
7. Click on Paste.
8. Right click on src.
9. Click on Build Path.
10. Click on Configure Build Path.
11. Click on Libraries.
12. Click on Add Jars.
13. Click SerialPort.jar.
14. Click Ok.
15. Click Ok.
Presentación rs232 java
Presentación rs232 java
Presentación rs232 java
public class App{
public static void main(String[ ] args)throws Exception{
SerialPort serialPort = new SerialPort();
List<String> portsFree = serialPort.getFreeSerialPort();
for (String free : portsFree) {
System.out.println(free);
}
}
}
import java.util.List;
import app.Com;
import app.Parameters;
import core.SerialPort;
public class App {
public static void main(String[] args)throws Exception{
// looks for free serial ports
SerialPort free = new SerialPort();
List<String> portList = free.getFreeSerialPort();
for (String string : portList) {
System.out.println(string);
}
// Settings parameters COM1.
Parameters settings = new Parameters();
settings.setPort("COM1");
settings.setBaudRate("9600");
//Instance COM1.
Com com1 = new Com(settings);
// Settings parameters COM·.
settings.setPort("COM3");
settings.setBaudRate("9600");
//Instance COM3.
Com com3 = new Com(settings);
//Write COM1.
for (int i = 0; i < 4; i++) {
System.out.println(">>Send G");
com1.sendSingleData('G');
}
//Read COM3
for (int i = 0; i < 4; i++) {
System.out.println("<<Receive "+com3.receiveSingleString());
}
}
}

More Related Content

PPTX
Important features of java
AL- AMIN
 
PPTX
Features of java
amiluafiah
 
PPTX
Features of java
Hitesh Kumar
 
PPTX
Presentation on Core java
mahir jain
 
PPTX
Chapter 1.3
sotlsoc
 
PDF
Java introduction
Kuppusamy P
 
PPTX
Java v/s .NET - Which is Better?
NIIT India
 
PPTX
A Comparison of .NET Framework vs. Java Virtual Machine
Abdelrahman Hosny
 
Important features of java
AL- AMIN
 
Features of java
amiluafiah
 
Features of java
Hitesh Kumar
 
Presentation on Core java
mahir jain
 
Chapter 1.3
sotlsoc
 
Java introduction
Kuppusamy P
 
Java v/s .NET - Which is Better?
NIIT India
 
A Comparison of .NET Framework vs. Java Virtual Machine
Abdelrahman Hosny
 

What's hot (20)

PPT
Java features
myrajendra
 
PDF
Java Programming
Prof. Dr. K. Adisesha
 
PPTX
Java part1
Raghu nath
 
PPTX
Presentation on java (8)
Shwetakant1
 
PDF
Java unit 1
Shipra Swati
 
PPTX
Java presentation
surajdmk
 
PPTX
Features of java unit 1
RubaNagarajan
 
PPTX
Features of java
laratechnologies
 
PDF
Java introduction with JVM architecture
atozknowledge .com
 
PPTX
Java Intro
Nazmul Hasan Rupok
 
PPTX
Features of java
WILLFREDJOSE W
 
PPTX
JAVA ENVIRONMENT
josemachoco
 
PPTX
JRE , JDK and platform independent nature of JAVA
Mehak Tawakley
 
PPTX
Features of java 02
University of Potsdam
 
PPT
INTRODUCTION TO JAVA APPLICATION
Ajit Yadav
 
PPTX
Java vs python
Rutuja Gholap
 
PPTX
core java
Roushan Sinha
 
PPTX
Java Presentation
SMNajrulHowlader
 
Java features
myrajendra
 
Java Programming
Prof. Dr. K. Adisesha
 
Java part1
Raghu nath
 
Presentation on java (8)
Shwetakant1
 
Java unit 1
Shipra Swati
 
Java presentation
surajdmk
 
Features of java unit 1
RubaNagarajan
 
Features of java
laratechnologies
 
Java introduction with JVM architecture
atozknowledge .com
 
Java Intro
Nazmul Hasan Rupok
 
Features of java
WILLFREDJOSE W
 
JAVA ENVIRONMENT
josemachoco
 
JRE , JDK and platform independent nature of JAVA
Mehak Tawakley
 
Features of java 02
University of Potsdam
 
INTRODUCTION TO JAVA APPLICATION
Ajit Yadav
 
Java vs python
Rutuja Gholap
 
core java
Roushan Sinha
 
Java Presentation
SMNajrulHowlader
 
Ad

Viewers also liked (20)

PDF
Haicku submission
Saurabh Singh
 
PDF
Forbidden Mihai Eminescu
Biblioteca Secreta
 
PDF
Weekly Real Estate Absorption rate sendingapr25
gueste85b68
 
PDF
INTERZIS EMINESCU
Biblioteca Secreta
 
PPT
Wiki
guest2d4f310
 
PPT
Scavenger hunt
gueste1259d37
 
PPTX
Happy Mother’S Day Mommy
britbobz
 
PDF
MARESALUL SI GARDA DE FIER
Biblioteca Secreta
 
PDF
C:\Fakepath\TOP SECRET MISCAREA LEGIONARA
Biblioteca Secreta
 
PDF
Iorga si secretele istoriei
Biblioteca Secreta
 
PDF
Aservirea Romaniei
Biblioteca Secreta
 
PDF
Nationalismul legionar
Biblioteca Secreta
 
PDF
Secret history of Iron Guard
Biblioteca Secreta
 
PPTX
Trends in digital learning
Sprout Labs
 
PPTX
Project management and 702010 blended learning programs
Sprout Labs
 
PPTX
eLearning - Branching Scenorias
Sprout Labs
 
PDF
Top secret miscarea legionara
Biblioteca Secreta
 
PPTX
How to make social learning work
Sprout Labs
 
PPTX
Webinar - Evaluating 70:20:10 learning programs
Sprout Labs
 
PPTX
Learn how to design a 70-20-10 learning ecosystem
Sprout Labs
 
Haicku submission
Saurabh Singh
 
Forbidden Mihai Eminescu
Biblioteca Secreta
 
Weekly Real Estate Absorption rate sendingapr25
gueste85b68
 
INTERZIS EMINESCU
Biblioteca Secreta
 
Scavenger hunt
gueste1259d37
 
Happy Mother’S Day Mommy
britbobz
 
MARESALUL SI GARDA DE FIER
Biblioteca Secreta
 
C:\Fakepath\TOP SECRET MISCAREA LEGIONARA
Biblioteca Secreta
 
Iorga si secretele istoriei
Biblioteca Secreta
 
Aservirea Romaniei
Biblioteca Secreta
 
Nationalismul legionar
Biblioteca Secreta
 
Secret history of Iron Guard
Biblioteca Secreta
 
Trends in digital learning
Sprout Labs
 
Project management and 702010 blended learning programs
Sprout Labs
 
eLearning - Branching Scenorias
Sprout Labs
 
Top secret miscarea legionara
Biblioteca Secreta
 
How to make social learning work
Sprout Labs
 
Webinar - Evaluating 70:20:10 learning programs
Sprout Labs
 
Learn how to design a 70-20-10 learning ecosystem
Sprout Labs
 
Ad

Similar to Presentación rs232 java (20)

PPTX
JAVA PROGRAMMING-Unit I - Final PPT.pptx
SuganthiDPSGRKCW
 
PDF
Sybsc cs sem 3 core java
WE-IT TUTORIALS
 
PDF
0f0cef_1dac552af56c4338ab0672859199e693.pdf
DeepakChaudhriAmbali
 
PPT
Java features
Madishetty Prathibha
 
PDF
Introduction to Java Programming.pdf
AdiseshaK
 
PPTX
Java ms harsha
Harsha Batra
 
PPTX
Java Programming Tutorials Basic to Advanced 1
JALALUDHEENVK1
 
PPTX
Unit1 JAVA.pptx
RahulAnand111531
 
DOCX
Java and its features
Pydi Nikhil
 
DOCX
Java 3 rd sem. 2012 aug.ASSIGNMENT
mayank's it solution pvt.ltd
 
DOCX
java introduction.docx
vikasbagra9887
 
PDF
Java chapter 1
Mukesh Tekwani
 
PPTX
Features of Java.pptx
V.V.Vanniaperumal College for Women
 
PPTX
Iintroduction to java , Java Coding , basics of java.pptx
MayankParashar31
 
PPTX
UNIT 1 Programming in java Bsc program.pptx
jijinamt
 
PPTX
JAVA ALL 5 MODULE NOTES.pptx
DrPreethiD1
 
PPTX
2 22CA026_Advance Java Programming_Data types and Operators.pptx
dolphiverma80
 
PPTX
Getting Started with JAVA
ShivamPathak318367
 
JAVA PROGRAMMING-Unit I - Final PPT.pptx
SuganthiDPSGRKCW
 
Sybsc cs sem 3 core java
WE-IT TUTORIALS
 
0f0cef_1dac552af56c4338ab0672859199e693.pdf
DeepakChaudhriAmbali
 
Java features
Madishetty Prathibha
 
Introduction to Java Programming.pdf
AdiseshaK
 
Java ms harsha
Harsha Batra
 
Java Programming Tutorials Basic to Advanced 1
JALALUDHEENVK1
 
Unit1 JAVA.pptx
RahulAnand111531
 
Java and its features
Pydi Nikhil
 
Java 3 rd sem. 2012 aug.ASSIGNMENT
mayank's it solution pvt.ltd
 
java introduction.docx
vikasbagra9887
 
Java chapter 1
Mukesh Tekwani
 
Iintroduction to java , Java Coding , basics of java.pptx
MayankParashar31
 
UNIT 1 Programming in java Bsc program.pptx
jijinamt
 
JAVA ALL 5 MODULE NOTES.pptx
DrPreethiD1
 
2 22CA026_Advance Java Programming_Data types and Operators.pptx
dolphiverma80
 
Getting Started with JAVA
ShivamPathak318367
 

Recently uploaded (20)

PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PPTX
Coupa-Overview _Assumptions presentation
annapureddyn
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
This slide provides an overview Technology
mineshkharadi333
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
Beyond Automation: The Role of IoT Sensor Integration in Next-Gen Industries
Rejig Digital
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Architecture of the Future (09152021)
EdwardMeyman
 
PDF
Software Development Company | KodekX
KodekX
 
PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Coupa-Overview _Assumptions presentation
annapureddyn
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
This slide provides an overview Technology
mineshkharadi333
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Software Development Methodologies in 2025
KodekX
 
Beyond Automation: The Role of IoT Sensor Integration in Next-Gen Industries
Rejig Digital
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Architecture of the Future (09152021)
EdwardMeyman
 
Software Development Company | KodekX
KodekX
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 

Presentación rs232 java

  • 4. The concept of Write-once-run-anywhere (known as the Platform independent) is one of the important key feature of java language that makes java as the most powerful language. Not even a single language is idle to this feature but java is more closer to this feature. The programs written on one platform can run on any platform provided the platform must have the JVM.
  • 5. There are various features that makes the java as a simple language. Programs are easy to write and debug because java does not use the pointers explicitly. It is much harder to write the java programs that can crash the system but we can not say about the other programming languages. Java provides the bug free system due to the strong memory management. It also has the automatic memory allocation and deallocation system.
  • 6. Java has the strong memory allocation and automatic garbage collection mechanism. It provides the powerful exception handling and type checking mechanism as compare to other programming languages. Compiler checks the program whether there any error and interpreter checks any run time error and makes the system secure from crash. All of the above features makes the java language robust.
  • 7. To be an Object Oriented language, any language must follow at least the four characteristics. •Inheritance : It is the process of creating the new classes and using the behavior of the existing classes by extending them just to reuse the existing code and adding the additional features as needed. •Encapsulation: It is the mechanism of combining the information and providing the abstraction. •Polymorphism: As the name suggest one name multiple form, Polymorphism is the way of providing the different functionality by the functions having the same name based on the signatures of the methods. •Dynamic binding :Sometimes we don't have the knowledge of objects about their specific types while writing our code. It is the way of providing the maximum functionality to a program about the specific type at runtime. As the languages like Objective C, C++ fulfills the above four characteristics yet they are not fully object oriented languages because they are structured as well as object oriented languages. But in case of java, it is a fully Object Oriented language because object is at the outer most level of data structure in java. No stand alone methods, constants, and variables are there in java. Everything in java is object even the primitive data types can also be converted into object by using the wrapper class.
  • 8. Distributed The widely used protocols like HTTP and FTP are developed in java. Internet programmers can call functions on these protocols and can get access the files from any remote machine on the internet rather than writing codes on their local system. Portable The feature Write-once-run-anywhere makes the java language portable provided that the system must have interpreter for the JVM. Java also have the standard data size irrespective of operating system or the processor. These features makes the java as a portable language. Dynamic While executing the java program the user can get the required files dynamically from a local drive or from a computer thousands of miles away from the user just by connecting with the Internet. Secure Java does not use memory pointers explicitly. All the programs in java are run under an area known as the sand box. Security manager determines the accessibility options of a class like reading and writing a file to the local disk. Java uses the public key encryption system to allow the java applications to transmit over the internet in the secure encrypted form. The bytecode Verifier checks the classes after loading. Performance Java uses native code usage, and lightweight process called threads. In the beginning interpretation of bytecode resulted the performance slow but the advance version of JVM uses the adaptive and just in time compilation technique that improves the performance.
  • 9. The term architectural neutral seems to be weird, but yes Java is an architectural neutral language as well. The growing popularity of networks makes developers think distributed. In the world of network it is essential that the applications must be able to migrate easily to different computer systems. Not only to computer systems but to a wide variety of hardware architecture and Operating system architectures as well. The Java compiler does this by generating byte code instructions, to be easily interpreted on any machine and to be easily translated into native machine code on the fly. The compiler generates an architecture-neutral object file format to enable a Java application to execute anywhere on the network and then the compiled code is executed on many processors, given the presence of the Java runtime system. Hence Java was designed to support applications on network. This feature of Java has thrived the programming language.
  • 10. Windows XP / Vista. JDK 6 or higher. Eclipse IDE. Bookstores Giovynet Driver Two serial ports. Hyperterminal. 1. Download handling libraries port. 2. Create java project. 3. Attach library for handling serial ports. 4. Create class to write code. 5. Write and execute code for free ports. 6. Write and execute code to transmit data between ports available.
  • 13. Follow these steps: 1. Open the folder GiovynetDriver / 2. Copy the files NativeLibraries / libSerialPort.dll, NativeLibraries /libSOSerialPort.so, and SerialPort.jar. 3. In Eclipse, click on Window. 4. Click on Show View. 5. Click on Navigator. 6. Right-click the project node (RS232). 7. Click on Paste. 8. Right click on src. 9. Click on Build Path. 10. Click on Configure Build Path. 11. Click on Libraries. 12. Click on Add Jars. 13. Click SerialPort.jar. 14. Click Ok. 15. Click Ok.
  • 17. public class App{ public static void main(String[ ] args)throws Exception{ SerialPort serialPort = new SerialPort(); List<String> portsFree = serialPort.getFreeSerialPort(); for (String free : portsFree) { System.out.println(free); } } }
  • 18. import java.util.List; import app.Com; import app.Parameters; import core.SerialPort; public class App { public static void main(String[] args)throws Exception{ // looks for free serial ports SerialPort free = new SerialPort(); List<String> portList = free.getFreeSerialPort(); for (String string : portList) { System.out.println(string); } // Settings parameters COM1. Parameters settings = new Parameters(); settings.setPort("COM1"); settings.setBaudRate("9600"); //Instance COM1. Com com1 = new Com(settings); // Settings parameters COM·. settings.setPort("COM3"); settings.setBaudRate("9600"); //Instance COM3. Com com3 = new Com(settings); //Write COM1. for (int i = 0; i < 4; i++) { System.out.println(">>Send G"); com1.sendSingleData('G'); } //Read COM3 for (int i = 0; i < 4; i++) { System.out.println("<<Receive "+com3.receiveSingleString()); } } }