Link to home
Start Free TrialLog in
Avatar of wmchew
wmchew

asked on

Can Java be used to control devices

hi all,

I would like to find out, currently my company has installed card access readers in our office. My boss would like to have software to monitor and control the card access readers. Card Access readers communicate with PC with RS485. Can Java be used to develped this application? How can I use java to backup DB to SQL?
ASKER CERTIFIED SOLUTION
Avatar of sudhakar_koundinya
sudhakar_koundinya

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of wmchew
wmchew

ASKER

Hi Yavor & sudhakar,

Thanks for your comprehensive explaination of Java2 platform.

The situation is as follows:- My company has installed door access readers in the building. And my boss want me to design a GUI to monitor the status of the readers. The microcontroller in the reader is programmed in C. Whilst, the communication between readers and PC is in RS485. Whilst we use EM and Mifare card, instead of the open card.

Is it necessary to that readers installed with JVM? without JVM in the device, can reader communicate with Java application?

thanks
So there are two things that come to my mind at first time :


1.  There is a way to reprogram (if it isn't so) the SW of the reader so that it commmunicates with java but it wont be as easy as the second . Then Java must be build so that it communicate with C and so on .

2.  You can install JVM on the reader and then use Java to build what ever you need !
It is the best way if not the only ...

--- EXPANDING 2 ---

If there is a problem with JVM for the readers (I am not so JME programer) you can always use help from SUN or other sites . They can even build a JVM for the reader if you can't build or find :)

Hope I help !  
             ;-)
Avatar of Cayce
Well if you got the computer already setup with a RS-485 interface or a RS-485 to RS-232 converter, all you need is the comm API on java (http://java.sun.com/products/javacomm/), so can communicate with the card reader. You're most likely going to need to reverse engineer whatever protocol used on the reader(s). However most vendors will gladly give you the spec (sometimes even for free) of the communication protocol.

"How can I use java to backup DB to SQL?" (I don't know how this question relates to the smartcard readers, correct me if misinterpreted your question)

However, the way to backup a DB to SQL is using JDBC to connect to one then replicate the data to the other. (The database structure would need to be created on the SQL server manually).