Results 1 to 4 of 4

Thread: เขียนจาวา ตืดต่อ hardware ทำได้ไหม

  1. #1
    Senior Member
    Join Date
    Feb 2007
    Location
    Bangkok
    Posts
    118


    คืออยากทราบว่า เราจะเขียน จาวา ใหสามารถติดต่อกับ hardware ได้ไหม ยกตัวอย่าง ๆ เช่น port serial ผมเคยเห็น มีหนังสือมากมาย ที่อธิบาย เกี่ยวกับการใช้ ภาษา ซี เขียนติดต่อ แต่ว่าผมมีเหตุจำเป็น ที่ต้องใช้ภาษาจาวาเพราะว่า ในตัวเร้าเตอร์ที่ผมจะเขียนโปรแกรมนั้นมัน มีแต่ package java compiler ให้ใช้เท่านั้น
    .
    .
    เลยอยากจะถาม ทุกท่านว่า ถ้าผมจะเขียนโดยใช้ภาษา จาวาติดต่อกับ port serial หรือ usb จะสามารถทำได้อย่างไรบ้าง ขอแหล่ง ความรู้หรือว่า ebook ก็ไ้ด้ครับ

  2. #2
    Administrator asylu3's Avatar
    Join Date
    Jun 2000
    Location
    Thailand
    Posts
    3,557


    ตรงจุนี้เท่าที่ทราบสามารถใช้ Java Communications API ได้ครับ




    [code]
    /*
    * Copyright (c) Ian F. Darwin, http://www.darwinsys.com/, 1996-2002.
    * All rights reserved.
    Hide Hack By vFCoders.
    Software written by Ian F. Darwin and others.
    * $Id: LICENSE,v 1.8 2004/02/09 03:33:38 ian Exp $
    *
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    * 1. Redistributions of source code must retain the above copyright
    *

  3. #3
    Junior Member
    Join Date
    Sep 2008
    Posts
    8


    โอ้ ขอบคุณมากครับ กำลังศึกษาเรื่องการติดต่อ hard ware พอดีเลย มีแนวทางในการสึกษาต่อแระ

    เพิ่งรู้น่ะเนี่ยว่ามีการติดต่อกับ API เหมือน .net

  4. #4
    Junior Member
    Join Date
    Jun 2009
    Posts
    4


    สามารถทำได้ครับ แต่อาจจะต้องใช้คู่กับ C/C++ โดยการใช้ JNI (Java Native Interface)
    สามารถหาศึกษาได้ที่

    http://java.sun.com/j2se/1.4.2/docs/guide/jni/

Similar Threads

  1. สายงานวิศวะคอม [สาย Hardware]
    By oDarkIceo in forum CS CE CPE Community
    Replies: 1
    Last Post: 02-04-2010, 04:18 PM
  2. Replies: 0
    Last Post: 10-01-2008, 09:58 AM
  3. 100 Tips Hardware
    By korakhot in forum Computer Tip & Trick / Tutorial
    Replies: 0
    Last Post: 15-10-2007, 01:43 PM
  4. Replies: 0
    Last Post: 07-10-2007, 01:22 PM
  5. 100 Trips Hardware
    By vorayuth in forum E-Book, Video หรือบทความทั่วไปด้าน Computer
    Replies: 0
    Last Post: 18-07-2007, 10:43 PM

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •