Serial port communication please help


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Serial port communication please help

  1. #1
    Join Date
    Jan 2003
    Posts
    1

    Question Serial port communication please help

    I want to use the serial port to recieve an 8bit byte and also able to send an output to the serial port(8 bit aas well).

    So far I find out a package called communication API but can't figure out how it work, can anyone drop me a hint or send an example code for learning.

    Cheers

  2. #2
    Join Date
    Oct 2002
    Posts
    66
    When I was working in Sony (as a Summer job) part of one of our jobs (I say our, but I wasn't working on it, I was busy with something else) was to create a Java class that was capable of interacting with another system using the serial port. I was, however, told that Java doesn't handle any serial port communications and as a result they had to learn a bit of C and create it all in that.

    So, my answer to you would be that it cannot be done in Java, and instead you need to use the JNI (Java Native Interface) and write a C module to handle it. If anyone knows different I'd be interested in knowing.

    Thanks and hope that helps.
    Meethoss

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