• Post Reply Bookmark Topic Watch Topic
  • New Topic

Better than C ?

 
arvind s
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys ,
I wanted to know whether Java can control some hardware like a RAM or a microprocessor connected at one of the ports of your comp ? Actually it should have something 'cause Java was originally made for this purpose.
For example:-i want to send a byte 11100101 to port Com-1 at the rate of 270 milliseconds. Is this possible?
C is very well known for this. Also i wanted to know whether Java
has any access to DOS based interrupts(INT's).
Thank you for any suggestions.
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
arvind s,
Please read and follow the Naming Policy It can benefit you, read Book Giveaways
Java is as close to truely platform independant as it gets today (which means the compiled code should run on most platforms without change or recompiling). C while the source code is portable (which means you should be able to recompile it a a new platform with small changes) it is not platform independant. For this Java sacrifices a few things like platform depend direct control of hardware. After all, access the RAM on a Compact True 64 or Dec-VAX is completely different.
However, Sun does have a package for communication with serial and parallel ports on a computer. Java<sup>TM</sup> Communications API which should provide a solution for you.
------------------
Hope This Helps
Carl Trusiak
[This message has been edited by Carl Trusiak (edited February 04, 2001).]
[This message has been edited by Carl Trusiak (edited February 08, 2001).]
 
Matt Senecal
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have done extensive work with communication over serial ports, and would be more than happy to help you out with any questions you may have.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Carl Trusiak:
arvind s,
Please read and follow the Naming Policy It can benefit you, read Book Giveaways

That could well be his real name, with the surname shortened for convenience (and/or because it does not fit or would be filtered by some software).
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Naming Policy was developed for a reason. There are allowances in that policy for people in that situation and for our user who only have one name and those who wish to remain anynomous. The biggest reason is, it helps promote a professional exchange. The average person wishing to cause trouble (We have our share, Bartenders and Sheriffs try to head these off before it ruins things for others) use silly pseudonyms.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!