Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

Maheera Jazi

@Maheera Jazi
About
Posts
5
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Handling Biometric Fingerprint Attendance Machine
    M Maheera Jazi

    ok, thanks! although this is not mentioned on the device documentation! I will try all roads!

    Java csharp java sysadmin help question

  • Handling Biometric Fingerprint Attendance Machine
    M Maheera Jazi

    yes, thanks for your response please.But, question please, you mean that it is possible to use Socket Object to retrieve the data from Fingerprint attendance machine?! as in my code!?

    Java csharp java sysadmin help question

  • Handling Biometric Fingerprint Attendance Machine
    M Maheera Jazi

    sure I checked the documentation very well, and I am sure from the port number and IP address are correct! I mean BY "it does not executed with me" It can not read from the device, just connect and wait for response from the device without hope to retrieve the data :( I do not know where is the error in my code :( !!

    Java csharp java sysadmin help question

  • Handling Biometric Fingerprint Attendance Machine
    M Maheera Jazi

    see update please!

    Java csharp java sysadmin help question

  • Handling Biometric Fingerprint Attendance Machine
    M Maheera Jazi

    anyone can help me here please :( : Handling Biometric Fingerprint Attendance Device by using Socket (JAVA) Is that possible?! I try with Socket, BUT it does not executed with me! Me Code is:

    import java.io.IOException;
    import java.io.ObjectInputStream;
    import java.io.ObjectOutputStream;
    import java.net.Socket;
    import java.net.UnknownHostException;

    public class Requester {
    Socket requestSocket;
    ObjectOutputStream out;
    ObjectInputStream in;
    String message;

    Requester() {
    }

    void run() throws IOException {
    try {
    // 1. creating a socket to connect to the server
    requestSocket = new Socket("192.168.0.19", 4370);
    System.out.println("Connected to given host in port 4370");
    // 2. get Input and Output streams
    in = new ObjectInputStream(requestSocket.getInputStream());
    // 3: Communicating with the server
    String line;
    while (true) {
    line = in.readLine();
    if (line != null) {
    System.out.println(line);
    }
    }
    } catch (UnknownHostException unknownHost) {
    System.err.println("You are trying to connect to an unknown host!");

    } catch (IOException ioException) {
        ioException.printStackTrace();
    
    } catch (Exception Exception) {
        Exception.printStackTrace();
    
    } finally {
        in.close();
        requestSocket.close();
    }
    

    }

    void sendMessage(String msg) {
    try {
    out.writeObject(msg);
    out.flush();
    System.out.println("client: " + msg);

    } catch (IOException ioException) {
        ioException.printStackTrace();
    }
    

    }

    public static void main(String args[]) throws IOException {
    Requester client = new Requester();
    client.run();
    }
    }

    f anyone could help me to communicate with the finger print device I will be grateful.

    Java csharp java sysadmin help question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups