Current location - Quotes Website - Collection of slogans - How does java read IC card number through serial IC card reader?
How does java read IC card number through serial IC card reader?
There are many kinds of IC card readers. The simplest way is to connect the computer directly, use the serial assistant software, and select a specific baud rate to receive the ic card number (some need to be decoded like RFIC).

After the above problems are solved, the focus is on how java can be a serial assistant. As we all know, java runs on a virtual machine, that is, on a window process. If java wants to read and write a serial port, it must be driven, not just loaded with a jar package.

Fortunately, Sun solved the problem for us. You can download the compressed package of Java com 20-win32. zip from sun's website, which contains the serial port driver (. Dll file) and the corresponding jar package. After downloading, will. Dll file, through the api provided by jar package, can operate the interface related to serial port. Here is an article about the use of java serial port, which I hope can be provided to you:/kabini/article/details/1601324.